deploy nuxt caddy 4
This commit is contained in:
parent
0737964902
commit
a4e2a9c272
|
@ -337,8 +337,6 @@ if [[ "$answer" == "y" ]]; then
|
||||||
read -s website_token
|
read -s website_token
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $username
|
|
||||||
|
|
||||||
su -c "cd /home/${username} &&\
|
su -c "cd /home/${username} &&\
|
||||||
git clone ${repo_url} &&\
|
git clone ${repo_url} &&\
|
||||||
cd ${front_folder} &&\
|
cd ${front_folder} &&\
|
||||||
|
@ -351,7 +349,7 @@ if [[ "$answer" == "y" ]]; then
|
||||||
npm run build &&\
|
npm run build &&\
|
||||||
tmux new-session -d -s front &&\
|
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" $username
|
tmux send-keys -t directus \"npx directus start\" C-m" $username
|
||||||
|
|
||||||
caddyfile="/etc/caddy/Caddyfile"
|
caddyfile="/etc/caddy/Caddyfile"
|
||||||
echo "www.${domain_name} {" >> $caddyfile
|
echo "www.${domain_name} {" >> $caddyfile
|
||||||
|
|
Loading…
Reference in New Issue