diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8926c75..a15fa57 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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` diff --git a/config/environments/development.rb b/config/environments/development.rb index 27551e3..43fd377 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 46ad474..7ef8abd 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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