commiting
This commit is contained in:
32
Makefile
32
Makefile
@@ -1,33 +1,17 @@
|
||||
IP_ADDR = allpawcare.com
|
||||
DOMAIN = allpawcare.com
|
||||
USER = awkawb
|
||||
IMG_ORIGINAL = "img_original"
|
||||
IMG_PUBLIC = "all_paw_care/static/img"
|
||||
LOCAL_ARCHIVE = $(shell pwd)/public.tar
|
||||
PUBLIC_DIR = "$(shell pwd)/public"
|
||||
REMOTE_DIR = /home/awkawb
|
||||
BOOTSTRAP_MODULE = "bootstrap-custom/boostrap/scss"
|
||||
CUSTOM_SCSS = "bootstrap-custom/custom.scss"
|
||||
PUBLIC_CSS = "all_paw_care/static/css/custom.css"
|
||||
|
||||
|
||||
.PHONY: dev-server
|
||||
dev-server:
|
||||
flask run --no-reload
|
||||
|
||||
.PHONY: build-custom-bootstrap
|
||||
build-custom-bootstrap:
|
||||
sass -I $(BOOTSTRAP_MODULE) $(CUSTOM_SCSS) $(PUBLIC_CSS)
|
||||
|
||||
.PHONY: process-images
|
||||
process-images:
|
||||
./process-images.sh
|
||||
|
||||
.PHONY: push-archive
|
||||
push-archive: archive
|
||||
scp $(LOCAL_ARCHIVE) root@$(DOMAIN):/srv/www && rm $(LOCAL_ARCHIVE)
|
||||
|
||||
.PHONY: archive
|
||||
archive:
|
||||
tar -cf $(LOCAL_ARCHIVE) $(PUBLIC_DIR)
|
||||
|
||||
.PHONY: ssh
|
||||
ssh:
|
||||
ssh $(USER)@$(DOMAIN)
|
||||
|
||||
.PHONY: ssh-root
|
||||
ssh-root:
|
||||
ssh root@$(DOMAIN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user