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:
parent
478ab3381a
commit
2f988795c4
1 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue