mirror of
https://github.com/luzifer-docker/codimd.git
synced 2024-11-13 00:12:48 +00:00
25 lines
439 B
Bash
25 lines
439 B
Bash
|
#!/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
|