[Hejes-devel] [1019] dbblog/Makefile: new targets for blog deployment

hejes-devel at nytud.hu hejes-devel at nytud.hu
Fri Nov 8 01:11:57 CET 2013


Revision: 1019
Author:   mihaltz
Date:     2013-11-08 01:11:57 +0100 (Fri, 08 Nov 2013)
Log Message:
-----------
dbblog/Makefile: new targets for blog deployment

Modified Paths:
--------------
    trunk/misc/dbblog/Makefile

Modified: trunk/misc/dbblog/Makefile
===================================================================
--- trunk/misc/dbblog/Makefile	2013-11-07 23:45:18 UTC (rev 1018)
+++ trunk/misc/dbblog/Makefile	2013-11-08 00:11:57 UTC (rev 1019)
@@ -1,3 +1,5 @@
+LIVEDIR=/opt/web2py/applications/helyesiras
+
 .PHONY: create_db create_dbusers
 
 # drop DB
@@ -23,3 +25,16 @@
 	mysql -u dbblogadmin --password=d4bl0GGr < dbblog_create_database.sql
 	mysql -u dbblogadmin --password=d4bl0GGr dbhelyesblog < dump_dbhelyesblog.sql
 
+# ------------------------------------------------------------------------------
+
+# Deploy blog images:
+# Copy ../../web2py/applications/helyesiras_webdev/static/blog/* to $(LIVEDIR)/static/blog
+# Use on production server only!
+deploy_images:
+	sudo cp ../../web2py/applications/helyesiras_webdev/static/blog/* $(LIVEDIR)/static/blog
+	sudo chown www-data:www-data $(LIVEDIR)/static/blog/*
+	sudo chmod 664 $(LIVEDIR)/static/blog/*
+
+# Deploys the current blog: calls deploy_images + restore_db
+# Use on production server only!
+deploy_blog: deploy_images restore_db




More information about the Hejes-devel mailing list