File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ jobs:
156
156
run : |
157
157
echo "$VPS_SSH_KEY" > deploy_key.pem
158
158
chmod 600 deploy_key.pem
159
- scp -i deploy_key.pem -o StrictHostKeyChecking=no -r .env $VPS_USER@$VPS_HOST:/root /apps/auth/.env
160
- ssh -i deploy_key.pem -o StrictHostKeyChecking=no $VPS_USER@$VPS_HOST "chmod 600 /root /apps/auth/.env"
159
+ scp -i deploy_key.pem -o StrictHostKeyChecking=no -r .env $VPS_USER@$VPS_HOST:/home/$VPS_USER /apps/auth/.env
160
+ ssh -i deploy_key.pem -o StrictHostKeyChecking=no $VPS_USER@$VPS_HOST "chmod 600 /home/$VPS_USER /apps/auth/.env"
161
161
162
162
- name : Copy binary to VPS
163
163
run : |
164
164
go mod download
165
165
go build -o ./bin ./service/auth/cmd/app/main.go
166
- scp -i deploy_key.pem -o StrictHostKeyChecking=no ./bin $VPS_USER@$VPS_HOST:/root /apps/auth/bin
166
+ scp -i deploy_key.pem -o StrictHostKeyChecking=no ./bin $VPS_USER@$VPS_HOST:/home/$VPS_USER /apps/auth/bin
167
167
168
168
- name : Set up systemd service on VPS
169
169
run : |
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ After=network.target
4
4
5
5
[Service]
6
6
User =js11zer
7
- WorkingDirectory =/root /apps/auth
8
- ExecStart =/root /apps/auth/bin
7
+ WorkingDirectory =/home/j11zer /apps/auth
8
+ ExecStart =/home/j11zer /apps/auth/bin
9
9
Restart =always
10
10
RestartSec =4
11
11
StandardOutput =inherit
12
- EnvironmentFile =/root /apps/auth/.env
12
+ EnvironmentFile =/home/j11zer /apps/auth/.env
13
13
14
14
[Install]
15
15
WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments