This commit is contained in:
1 parent
0ca23e6c01
commit
1d5e108790
1 file changed
+2
-3
@@ -21,14 +21,13 @@ jobs:
|
|||||||
# 1. Navigate to your project directory on the VPS
|
# 1. Navigate to your project directory on the VPS
|
||||||
cd /var/www/atom-nexst/
|
cd /var/www/atom-nexst/
|
||||||
|
|
||||||
# 2. Synchronize the application files via Git
|
# 2. Synchronize the application files via Git (Targeting origin specifically)
|
||||||
git fetch --all
|
git fetch origin
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
# --- CLEAN-UP STEP (After git reset, before build) ---
|
# --- CLEAN-UP STEP (After git reset, before build) ---
|
||||||
echo "--- Moving or removing specific items ---"
|
echo "--- Moving or removing specific items ---"
|
||||||
# rm -rf /var/www/atom-nexst/directory-name
|
# rm -rf /var/www/atom-nexst/directory-name
|
||||||
# mkdir -p /var/www/atom-storage-temp && mv /var/www/atom-nexst/config-file.json /var/www/atom-storage-temp/
|
|
||||||
|
|
||||||
# Load environment variables from .env file for the next steps
|
# Load environment variables from .env file for the next steps
|
||||||
export $(grep -v '^#' .env | xargs)
|
export $(grep -v '^#' .env | xargs)
|
||||||
|
|||||||
Reference in new issue
Block a user