1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/misskey_ynh.git synced 2024-09-03 19:46:03 +02:00

Merge pull request #57 from YunoHost-Apps/run-clean

Run clean
This commit is contained in:
Éric Gaspar 2022-03-15 19:27:21 +01:00 committed by GitHub
commit ca25896326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -69,7 +69,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
#================================================= #=================================================
@ -141,9 +140,9 @@ ynh_script_progression --message="Installing Misskey..." --weight=15
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less yarn add ts-node webpack ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn add ts-node webpack
ynh_exec_warn_less yarn build ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
ynh_exec_warn_less yarn run init ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn run init
popd popd
#================================================= #=================================================

View file

@ -117,7 +117,6 @@ ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
#================================================= #=================================================
@ -125,10 +124,10 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
#================================================= #=================================================
pushd "$final_path" pushd "$final_path"
ynh_exec_warn_less yarn install ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less yarn run clean ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn run clean
ynh_exec_warn_less yarn build ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
ynh_exec_warn_less yarn migrate ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn migrate
popd popd
#================================================= #=================================================