This commit is contained in:
1 parent
e588fc8162
commit
3d7bd16e29
1 file changed
+4
-4
@@ -25,7 +25,7 @@ jobs:
|
||||
git fetch origin --prune
|
||||
git reset --hard origin/main
|
||||
|
||||
# VERWIJDER OUDE CACHE EN BUILDS (Pas aan naar .output, .next of dist afhankelijk van je framework)
|
||||
# REMOVE OLD CACHE AND BUILDS (Adjust to .output, .next, or dist depending on your framework)
|
||||
rm -rf .next .output dist
|
||||
|
||||
# 4. Configure pnpm to automatically approve build scripts
|
||||
@@ -37,15 +37,15 @@ jobs:
|
||||
pnpm prisma generate
|
||||
pnpm build
|
||||
|
||||
# 5. Fix ownership: Eerst bouwen onder de runner, DAARNA pas naar de webserver zetten
|
||||
# 5. Fix ownership: Build first, THEN set permissions for the web server
|
||||
sudo chown -R www-data:www-data /var/www/atom-nexst/
|
||||
|
||||
# 6. Harde herstart van de Systemd service
|
||||
# 6. Hard restart of the Systemd service to clear memory cache
|
||||
echo "Hard resetting systemd service..."
|
||||
sudo systemctl stop atom-nexst.service
|
||||
sudo systemctl start atom-nexst.service
|
||||
|
||||
# Extra check: Staat hij echt aan?
|
||||
# Extra health check: Ensure the service is actually running
|
||||
sleep 2
|
||||
if ! systemctl is-active --quiet atom-nexst.service; then
|
||||
echo "ERROR: atom-nexst.service failed to start!" >&2
|
||||
|
||||
Reference in new issue
Block a user