skill-assessment-app/start-server.sh
2016-08-09 12:25:07 -05:00

18 lines
298 B
Bash
Executable File

#!/bin/bash
if [ -d '/usr/app' ]; then
cd /usr/app
bundle
npm install
bower install
cd vendor/assets/ && bitters install && cd /usr/app
service mysql start
rails db:setup
rails db:migrate
rails db:fixtures:load
rails s -b 0.0.0.0
else
echo "Are you in docker container?"
fi