mirror of
https://github.com/chenasraf/opensnp.org-docker.git
synced 2026-05-17 17:48:10 +00:00
* Use docker-compose to run database setup * Build sidekiq image in test script * Fix db migration startup script * Let Runit deal with services Sidekiq was started by a blocking script in my_init. This lead to the init process not getting to run Runit, which is in charge of CRON among other things. To fix it, I moved Sidekiq to be run by Runit as well. I also moved the postfix start script, while I was at it.
6 lines
98 B
Bash
6 lines
98 B
Bash
#!/bin/sh
|
|
|
|
cd /home/app/snpr
|
|
exec 2>&1
|
|
exec bash -l -c 'chpst -u app bundle exec rake db:migrate'
|