Initial Push to CloudPanel
This commit is contained in:
@@ -32,8 +32,11 @@ ssh $SERVER_USER@$SERVER_IP << EOF
|
|||||||
cd $PROJECT_DIR
|
cd $PROJECT_DIR
|
||||||
|
|
||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
echo "🌑 Initializing production repository (First time)..."
|
echo "🌑 Initializing production repository (Force setup in non-empty dir)..."
|
||||||
git clone https://git.intaleqapp.com/Hamza/musadeq.git .
|
git init
|
||||||
|
git remote add origin https://git.intaleqapp.com/Hamza/musadeq.git
|
||||||
|
git fetch --all
|
||||||
|
git reset --hard origin/main
|
||||||
else
|
else
|
||||||
echo "⬇️ Pulling latest changes from Git..."
|
echo "⬇️ Pulling latest changes from Git..."
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|||||||
Reference in New Issue
Block a user