Files
mapknitter/start.sh
Sebastian Silva f4650a73ab Deployment tweaks including Makefile and start script (#418)
* Start script plus Makefile

* Add COMPOSE_HTTP_TIMEOUT

* Omit checking subdomains. This should be done at nginx level.

* Add precompile step to Makefile
2019-03-20 09:59:19 -04:00

14 lines
254 B
Bash
Executable File

#!/bin/bash -l
pidfile=/app/tmp/pids/server.pid
bundle check || bundle install
bower install --allow-root
if [ -f $pidfile ] ; then
>&2 echo 'Server PID file already exists. Removing it...';
rm $pidfile;
fi
bundle exec rails s -p 3000 -b '0.0.0.0'