Update DC yml, dev.rb and docs

This commit is contained in:
Ari Timonen 2020-03-26 01:34:52 +02:00
parent 56303d39ba
commit f0e73d0bbe
3 changed files with 11 additions and 5 deletions

View file

@ -19,6 +19,7 @@ Just run and open http://localhost:4000/
1. VS Code and RubyMine are great IDE's/editors. 1. VS Code and RubyMine are great IDE's/editors.
1. To run VS Code plugin Ruby Test Explorer in docker container you need to create path to custom 1. To run VS Code plugin Ruby Test Explorer in docker container you need to create path to custom
1. Do not commit too much without testing. Also keep commits small for documentation and reversability issues. 1. Do not commit too much without testing. Also keep commits small for documentation and reversability issues.
1. You need to rebuild the docker image when you change gems.
## Best practices ## Best practices
@ -39,6 +40,10 @@ FIXME, TODO, EXPLAIN, OBSOLETE
## Handy commands ## Handy commands
Build or rebuild
docker-compose -f docker-compose.dev.yml build`
To get inside docker web+test containers: To get inside docker web+test containers:
docker-compose -f docker-compose.dev.yml exec -u root web /bin/bash` docker-compose -f docker-compose.dev.yml exec -u root web /bin/bash`

View file

@ -29,14 +29,14 @@ Ensl::Application.configure do
config.assets.debug = true config.assets.debug = true
# Use a different cache store # Use a different cache store
config.cache_store = :dalli_store config.cache_store = :dalli_store, 'memcached'
# Enable threaded mode # Enable threaded mode
# config.threadsafe! # config.threadsafe!
config.eager_load = false config.eager_load = false
config.web_console.whitelisted_ips = '172.0.0.0/8' config&.web_console.whitelisted_ips = '172.0.0.0/8'
config.web_console.whiny_requests = true config&.web_console.whiny_requests = true
config.serve_static_assets = true config.serve_static_assets = true
end end

View file

@ -41,7 +41,7 @@ services:
- 3005:3005 # Capybara listens here - 3005:3005 # Capybara listens here
links: links:
- db - db
- selenium # - selenium
volumes: volumes:
- ".:/var/www" - ".:/var/www"
# command: bin/spring server # command: bin/spring server
@ -102,6 +102,7 @@ services:
memcached: memcached:
image: memcached:latest image: memcached:latest
container_name: ensl_dev_memcached
#redis: #redis:
# image: redis # image: redis