Files
opensnp.org-docker/db_migrate.sh
Helge Rausch 9b1ed05a5f Fix CRON (#24)
* 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.
2022-11-23 15:09:34 +01:00

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'