Updated run.sh
This commit is contained in:
parent
c9184a687a
commit
483e38caab
@ -10,16 +10,5 @@ services:
|
|||||||
command: bundle exec ruby app.rb -o 0.0.0.0 -p 4567
|
command: bundle exec ruby app.rb -o 0.0.0.0 -p 4567
|
||||||
ports:
|
ports:
|
||||||
- "4567:4567"
|
- "4567:4567"
|
||||||
volumes:
|
|
||||||
- .:/code
|
|
||||||
|
|
||||||
cron:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
restart: unless-stopped
|
|
||||||
tty: true
|
|
||||||
container_name: cron
|
|
||||||
command: whenever -i
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
3
run.sh
3
run.sh
@ -7,4 +7,5 @@ echo '--- run yarn install'
|
|||||||
docker-compose run app yarn --cwd public/
|
docker-compose run app yarn --cwd public/
|
||||||
|
|
||||||
echo '--- update cronjob'
|
echo '--- update cronjob'
|
||||||
docker-compose run app whenever -w
|
docker-compose run app whenever -w
|
||||||
|
docker-compose run app sh /etc/init.d/cron restart
|
Loading…
Reference in New Issue
Block a user