-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 765 Bytes
/
Makefile
File metadata and controls
29 lines (25 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all:
@echo ""
@echo "Comandos a ejecutar:"
@echo ""
@echo " iniciar Instala las dependencias."
@echo " ejecutar Lanza el sitio en modo local."
@echo ""
@echo ""
iniciar:
bundler install
ejecutar: iniciar
bundler exec jekyll serve
deploy_a_produccion: iniciar
rm -rf _site
rm -rf dist
@echo "Compilando el sitio."
bundler exec jekyll build --baseurl ''
@echo "Clonando repositorio para realizar el deploy."
git clone dokku@trifulca.com.ar:website dist/
@echo "Moviendo archivos..."
@cp -r _site/* dist/
@echo "Realizando deploy..."
@cd dist; git add .; git config user.email "trifulcapodcast@gmail.com"; git config user.name "Trifulca Podcast"; git commit -am 'rebuild' --allow-empty; git push -f
rm -rf _site
rm -rf dist