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. 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. You need to rebuild the docker image when you change gems.
## Best practices
@ -39,6 +40,10 @@ FIXME, TODO, EXPLAIN, OBSOLETE
## Handy commands
Build or rebuild
docker-compose -f docker-compose.dev.yml build`
To get inside docker web+test containers:
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
# Use a different cache store
config.cache_store = :dalli_store
config.cache_store = :dalli_store, 'memcached'
# Enable threaded mode
# config.threadsafe!
config.eager_load = false
config.web_console.whitelisted_ips = '172.0.0.0/8'
config.web_console.whiny_requests = true
config&.web_console.whitelisted_ips = '172.0.0.0/8'
config&.web_console.whiny_requests = true
config.serve_static_assets = true
end

View file

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