Merge remote-tracking branch 'nextjs/main' into codex/publish-nextjs-current
This commit is contained in:
commit
eaf5fc387d
2 files changed
+17
-8
No files matched your search
@@ -11,16 +11,24 @@ jobs:
|
|||||||
- name: Execute Build and Deploy Commands
|
- name: Execute Build and Deploy Commands
|
||||||
run: |
|
run: |
|
||||||
echo "--- Starting EPIC WEB CONTROL Deployment ---"
|
echo "--- Starting EPIC WEB CONTROL Deployment ---"
|
||||||
|
|
||||||
# 1. Navigeer direct naar de juiste map op de VPS
|
# 1. Navigate directly to the project folder on the VPS
|
||||||
cd /var/www/atom-next/
|
cd /var/www/atom-next/
|
||||||
|
|
||||||
# 2. Synchroniseer de code direct via Git
|
# 2. Sync the code directly via Git
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
# 3. Voer de database migraties uit
|
# 3. Run the database migrations
|
||||||
echo "--- Running Database Migrations ---"
|
echo "--- Running Database Migrations ---"
|
||||||
pnpm db:migrate
|
pnpm db:migrate
|
||||||
|
|
||||||
echo "--- Deployment Completed Successfully ---"
|
# 4. Rebuild the application
|
||||||
|
echo "--- Building Application ---"
|
||||||
|
pnpm build
|
||||||
|
|
||||||
|
# 5. Restart the application service
|
||||||
|
echo "--- Restarting Atom Next Service ---"
|
||||||
|
sudo systemctl restart atom-next.service
|
||||||
|
|
||||||
|
echo "--- Deployment Completed Successfully ---"
|
||||||
Reference in new issue
Block a user