Skip to content

Commit

Permalink
We are not using socket activation, so remove the socket and set SOCK…
Browse files Browse the repository at this point in the history
…ET_PATH
  • Loading branch information
ddxv committed Oct 22, 2023
1 parent 1f692e6 commit 03f6042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
git pull origin main
cd frontend
sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-api.service
sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-frontend.socket
sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-api.socket
sudo systemctl enable /home/ubuntu/app-store-dash/scripts/app-store-frontend.service
sudo systemctl daemon-reload
sudo systemctl restart app-store-api
Expand Down
4 changes: 2 additions & 2 deletions scripts/app-store-frontend.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/app-store-dash/frontend
Environment=NODE_ENV=production SOCKET_PATH=/run/app-store-frontend.sock
Environment=NODE_ENV=production SOCKET_PATH=/tmp/app-store-frontend.sock
ExecStart=/usr/local/bin/node /home/ubuntu/app-store-dash/frontend/build
ExecReload=/bin/kill -s HUP $MAINPID
Restart=on-failure
KillMode=mixed
PrivateTmp=true

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
9 changes: 0 additions & 9 deletions scripts/app-store-frontend.socket

This file was deleted.

0 comments on commit 03f6042

Please sign in to comment.