gitlink-forgeplus/bin/start.sh

6 lines
296 B
Bash

#!/bin/bash
bash -l -c "source /etc/profile.d/rvm.sh"
bash -c "RAILS_ENV=production rails db:create"
bash -c "RAILS_ENV=production bundle exec rake sync_table_structure:import_csv"
bash -c "RAILS_ENV=production rails db:migrate"
bash -c "rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"