Change docker-compose file version and add deface target to Makefile [SCI-1199]

This commit is contained in:
Oleksii Kriuchykhin 2017-04-24 10:12:07 +02:00
parent 8bf220a972
commit 4b3d752290
3 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,7 @@ ENABLE_TUTORIAL=true
ENABLE_RECAPTCHA=false
ENABLE_USER_CONFIRMATION=false
ENABLE_USER_REGISTRATION=true
DEFACE_ENABLED=false
endef
export PRODUCTION_CONFIG_BODY
@ -44,6 +45,9 @@ database:
database-production:
@$(MAKE) rails-production cmd="bash -c 'while ! nc -z db 5432; do sleep 1; done; rake db:create && rake db:migrate && rake db:seed'"
deface:
@$(MAKE) rails cmd="rake deface:precompile"
rails:
@docker-compose run --rm web $(cmd)

View file

@ -1,4 +1,4 @@
version: '2.1'
version: '2'
services:
db:
container_name: scinote_db_production

View file

@ -1,4 +1,4 @@
version: '2.1'
version: '2'
services:
db:
container_name: scinote_db_development