Files
mapknitter/start.sh
Kaustubh Nair 5673c037ea Yarn upgrade (#702)
* Add yarn

* Remove error log

* Modify package.json

* Add yarn install to start.sh

* Add leaflet google

* Remove leaflet-google from package json

* remove passenger error logs

* Fix install script

* Remove flag

* Fix gemfile

* Fix conflicts

* Fix gemfile.lock

* Run asset-precompile on travis

* Run create only for production

* Change permissions of exporter script

* Cherry pick local builds for travis runners, https://github.com/publiclab/mapknitter/pull/672

Co-authored-by: Álax de Carvalho Alves <alaxallves@gmail.com>

* Fix rubocop offence
2019-06-16 20:12:57 -04:00

15 lines
279 B
Bash
Executable File

#!/bin/bash -l
pidfile=/app/tmp/pids/server.pid
bundle check || bundle install
yarn install
if [ -f $pidfile ] ; then
>&2 echo 'Server PID file already exists. Removing it...';
rm $pidfile;
fi
#bundle exec /usr/local/bundle/bin/passenger start
bundle exec passenger start