deploy nuxt caddy 4

This commit is contained in:
Valentin 2024-02-25 17:40:05 +01:00
parent 0737964902
commit a4e2a9c272
1 changed files with 1 additions and 3 deletions

View File

@ -337,8 +337,6 @@ if [[ "$answer" == "y" ]]; then
read -s website_token
fi
echo $username
su -c "cd /home/${username} &&\
git clone ${repo_url} &&\
cd ${front_folder} &&\
@ -351,7 +349,7 @@ if [[ "$answer" == "y" ]]; then
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 directus "npx directus start" C-m" $username
tmux send-keys -t directus \"npx directus start\" C-m" $username
caddyfile="/etc/caddy/Caddyfile"
echo "www.${domain_name} {" >> $caddyfile