1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

I believe it's much simpler to just copypasta the code from bin/setup into the install script

This commit is contained in:
Alexandre Aubin 2020-04-27 01:08:36 +02:00 committed by GitHub
parent 478ab3381a
commit 2f988795c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,21 @@ cp ../conf/.sequelizerc.example "$final_path"/.sequelizerc
ynh_script_progression --message="Building application... (this may take some time and resources!)"
pushd "$final_path" || exit
./bin/setup
# ---- This is copypasta from https://raw.githubusercontent.com/codimd/server/master/bin/setup
if [ ! -f config.json ]; then
cp config.json.example config.json
fi
if [ ! -f .sequelizerc ]; then
cp .sequelizerc.example .sequelizerc
fi
yarn install
yarn install --production=false # FIXME: this doesn't sounds like what we want to have for a real deployment ? idk
# ---- End copypasta from https://raw.githubusercontent.com/codimd/server/master/bin/setup
yarn run build
#node_modules/.bin/sequelize db:migrate
popd || exit