updating env and makefile
This commit is contained in:
parent
87e8080e45
commit
573f241360
4
.env
Normal file
4
.env
Normal 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
21
Makefile
Normal 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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user