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

NODE_ENV=production

This commit is contained in:
Thomas 2024-06-14 17:41:33 +02:00 committed by GitHub
parent cfa7aeb915
commit 08b1860d0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,9 +89,9 @@ ynh_script_progression --message="Deploying $app..."
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install moment-locales-webpack-plugin # ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install moment-locales-webpack-plugin
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production yarn install --production
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn run production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production yarn run production
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan setup:production --force --email=$email --password=$password ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan setup:production --force --email=$email --password=$password
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan passport:client --password -n > key.txt ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan passport:client --password -n > key.txt
mobile_id=$( cd $install_dir && tail -2 key.txt | head -1 | cut -c 12- ) mobile_id=$( cd $install_dir && tail -2 key.txt | head -1 | cut -c 12- )