codimd/run.sh
Knut Ahlers b0a89cd406
Initial
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-05-30 00:21:44 +02:00

24 lines
439 B
Bash
Executable file

#!/bin/bash
set -o pipefail
set -ex
if ! [ -f /config/config.json ]; then
cp config.json.default config.json
else
cp /config/config.json config.json
fi
if ! [ -f /config/.sequelizerc ]; then
cp .sequelizerc.default .sequelizerc
else
cp /config/.sequelizerc .sequelizerc
fi
if [ -f /config/client_config.js ]; then
cp /config/client_config.js public/js/config.js
fi
node_modules/.bin/sequelize db:migrate
exec npm run start