Skip to content

Commit

Permalink
Temp workaround, add ubuntu to supplementary group for www-data, then…
Browse files Browse the repository at this point in the history
… change the ownership of the file to www-data
  • Loading branch information
ddxv committed Oct 22, 2023
1 parent 03f6042 commit ae6fe44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actions-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ jobs:
sudo systemctl restart app-store-api
npm run build
sudo systemctl restart app-store-frontend
sudo chown -R www-data:www-data /tmp/app-store-frontend.sock
4 changes: 1 addition & 3 deletions scripts/app-store-frontend.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ After=network.target
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/app-store-dash/frontend
SupplementaryGroups=www-data
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

0 comments on commit ae6fe44

Please sign in to comment.