10 lines
317 B
Bash
10 lines
317 B
Bash
#!/bin/bash
|
|
repo_name=$1
|
|
cd /var/www/repositories/$repo_name
|
|
git pull origin prod
|
|
tmux send-keys -t directus C-c
|
|
npm i
|
|
npm run build
|
|
tmux send-keys -t front C-c
|
|
tmux send-keys -t front \"cd /var/www/repositories/${repo_name} && node .output/server/index.mjs\" C-m
|
|
tmux send-keys -t directus \"npx directus start\" C-m |