update: add alpha server to makefile
This commit is contained in:
parent
2b709b2033
commit
184940b15e
20
Makefile
20
Makefile
@ -52,10 +52,17 @@ $(DIST_DIR)/index.html: src/index.pug src/config.json $(wildcard src/*.pug src/*
|
|||||||
# pug (prod)
|
# pug (prod)
|
||||||
$(DIST_DIR)/index.prod.html: src/index.pug src/config.json $(wildcard src/*.pug src/*/*.pug)
|
$(DIST_DIR)/index.prod.html: src/index.pug src/config.json $(wildcard src/*.pug src/*/*.pug)
|
||||||
@echo pug: $< ➜ $@
|
@echo pug: $< ➜ $@
|
||||||
|
|
||||||
@export ENV="prod"; \
|
@export ENV="prod"; \
|
||||||
node_modules/.bin/pug --pretty $< --out $(dir $@) -E prod.html -O src/config.json || touch $@
|
node_modules/.bin/pug --pretty $< --out $(dir $@) -E prod.html -O src/config.json || touch $@
|
||||||
|
|
||||||
|
# pug (staging)
|
||||||
|
$(DIST_DIR)/index.staging.html: src/index.pug src/config.json $(wildcard src/*.pug src/*/*.pug)
|
||||||
|
@echo pug: $< ➜ $@
|
||||||
|
|
||||||
|
@export ENV="staging"; \
|
||||||
|
node_modules/.bin/pug --pretty $< --out $(dir $@) -E staging.html -O src/config.json || touch $@
|
||||||
|
|
||||||
# sass
|
# sass
|
||||||
$(DIST_DIR)/styles/index.css: src/styles/index.scss $(wildcard src/*.scss src/*/*.scss)
|
$(DIST_DIR)/styles/index.css: src/styles/index.scss $(wildcard src/*.scss src/*/*.scss)
|
||||||
@echo sass: $< ➜ $@
|
@echo sass: $< ➜ $@
|
||||||
@ -75,9 +82,14 @@ deploy: pull install build
|
|||||||
pull:
|
pull:
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
sync: buildprod
|
sync: buildstaging
|
||||||
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/ --exclude=www/index.html --exclude=www/index.prod.html
|
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/ --exclude=www/index.html --exclude=www/index.prod.html --exclude=www/index.staging.html
|
||||||
rsync --no-R --no-implied-dirs www/index.prod.html staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/index.html
|
rsync --no-R --no-implied-dirs www/index.staging.html staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/index.html
|
||||||
rsync -v www/.htaccess staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
|
rsync -v www/.htaccess staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
|
||||||
|
|
||||||
|
sync-prod: buildprod
|
||||||
|
rsync -rv www/* alpha@ssh-alpha.happy-dev.fr:~/alpha.happy-dev.fr/ --exclude=www/index.html --exclude=www/index.prod.html --exclude=www/index.staging.html
|
||||||
|
rsync --no-R --no-implied-dirs www/index.prod.html alpha@ssh-alpha.happy-dev.fr:~/www/index.html
|
||||||
|
rsync -v www/.htaccess alpha@ssh-alpha.happy-dev.fr:~/www/
|
||||||
|
|
||||||
.PHONY: default install submodules copy_lib copy_samples build watch serve clean sync buildprod pull deploy
|
.PHONY: default install submodules copy_lib copy_samples build watch serve clean sync buildprod pull deploy
|
Loading…
Reference in New Issue
Block a user