updating env and makefile

This commit is contained in:
Antoine M 2024-07-22 11:17:28 +02:00
parent 87e8080e45
commit 573f241360
2 changed files with 25 additions and 0 deletions

4
.env Normal file
View File

@ -0,0 +1,4 @@
# export THEME_FOLDER_NAME=Deligraph_Homegrade
export HOST=deliadmin@51.91.77.19
export PORT=1982
export CONTENT_PATH=~/oxfam/wordpress/

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
##########################
# SCRIPT DE DÉPLOIEMENT
##########################
include .env
RED=\033[0;31m
GREEN=\033[0;32m
YELLOW=\033[0;33m
NC=\033[0m # No Color
deploy: deploy-dist
deploy-dist:
@echo "$(GREEN)####Synchronisation des Themes $(NC)"
@rsync -avhp -e 'ssh -p $(PORT)' ./dist/ $(HOST):$(CONTENT_PATH) --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'
test-connect:
@echo "$(GREEN)####SIMULATION — TEST DE CONNEXION $(NC)"
@ssh -p $(PORT) $(HOST) "cd $(CONTENT_PATH); pwd"