mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-24 00:29:30 +08:00
Change docker-compose file version and add deface target to Makefile [SCI-1199]
This commit is contained in:
parent
8bf220a972
commit
4b3d752290
3 changed files with 6 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version: '2.1'
|
||||
version: '2'
|
||||
services:
|
||||
db:
|
||||
container_name: scinote_db_production
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version: '2.1'
|
||||
version: '2'
|
||||
services:
|
||||
db:
|
||||
container_name: scinote_db_development
|
||||
|
|
Loading…
Reference in a new issue