Bash · 48 lignes
RAW · Download
# Configuration staging
STAGING_HOST="51.75.88.202"
STAGING_USER="deploy"
STAGING_PATH="/opt/nexacore/app"
# Base de données staging
DB_HOST="db-staging.nexacore-solutions.fr"
DB_NAME="nexacore_staging"
DB_USER="nexacore_app"
DB_PASS="Nx@St4g1ng2023!"
# WordPress admin (staging)
WP_ADMIN_USER="nexaadmin"
WP_ADMIN_PASS="WpNx@2023#Stg"
# API Keys
SENDGRID_API_KEY="SG.xK7mNp2R_aBcDeFgHiJkLmNoP.QrStUvWxYz1234"
SLACK_WEBHOOK="https://hooks.slack.com/services/T00NEXACORE/B00ABC/xK7mNp2R"
# Déploiement
ssh $STAGING_USER@$STAGING_HOST "
cd $STAGING_PATH
git pull origin develop
composer install --no-dev
php artisan migrate --force
sudo systemctl restart php7.4-fpm nginx
"
echo "[+] Staging : https://staging.nexacore-solutions.fr"
echo "[i] WP admin : $WP_ADMIN_USER / $WP_ADMIN_PASS"