www-data 15
This commit is contained in:
parent
495e8dd1cb
commit
e912c49481
|
@ -360,7 +360,8 @@ if [[ "$answer" == "y" ]]; then
|
||||||
su -s /bin/bash -c "tmux send-keys -t directus C-c" www-data
|
su -s /bin/bash -c "tmux send-keys -t directus C-c" www-data
|
||||||
|
|
||||||
su -c "cd /home/${username}/${front_folder} &&\
|
su -c "cd /home/${username}/${front_folder} &&\
|
||||||
npm install" $username
|
npm install &&\
|
||||||
|
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\"" $username
|
||||||
|
|
||||||
mkdir /var/www/.nuxtrc
|
mkdir /var/www/.nuxtrc
|
||||||
chown -R www-data:www-data /var/www/.nuxtrc
|
chown -R www-data:www-data /var/www/.nuxtrc
|
||||||
|
@ -368,9 +369,7 @@ if [[ "$answer" == "y" ]]; then
|
||||||
chown -R www-data:www-data /home/$username/.npm
|
chown -R www-data:www-data /home/$username/.npm
|
||||||
chown -R www-data:www-data /home/$username/$front_folder
|
chown -R www-data:www-data /home/$username/$front_folder
|
||||||
|
|
||||||
su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\
|
su -s /bin/bash -c "tmux new-session -d -s front &&\
|
||||||
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
|
|
||||||
tmux new-session -d -s front &&\
|
|
||||||
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m &&\
|
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m &&\
|
||||||
tmux send-keys -t directus \"npx directus start\" C-m" www-data
|
tmux send-keys -t directus \"npx directus start\" C-m" www-data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue