community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1696008 - /comdev/tools/scripts/deploy.sh
Date Fri, 14 Aug 2015 23:06:12 GMT
Author: rgardler
Date: Fri Aug 14 23:06:11 2015
New Revision: 1696008

URL: http://svn.apache.org/r1696008
Log:
mount local volume for local docker host

Modified:
    comdev/tools/scripts/deploy.sh

Modified: comdev/tools/scripts/deploy.sh
URL: http://svn.apache.org/viewvc/comdev/tools/scripts/deploy.sh?rev=1696008&r1=1696007&r2=1696008&view=diff
==============================================================================
--- comdev/tools/scripts/deploy.sh (original)
+++ comdev/tools/scripts/deploy.sh Fri Aug 14 23:06:11 2015
@@ -75,8 +75,8 @@ case $type in
 	docker run --rm --link meetups_db:db meetups python manage.py migrate
 	;;
     "local")
-	docker run --rm --link meetups_db:db meetups python manage.py makemigrations events_list
-	docker run --rm --link meetups_db:db meetups python manage.py migrate
+	docker run --rm -v `pwd`:/projects --link meetups_db:db meetups python manage.py makemigrations
events_list
+	docker run --rm -v `pwd`:/projects  --link meetups_db:db meetups python manage.py migrate
 	;;
 esac
 
@@ -96,7 +96,7 @@ case $type in
 	docker run -d --link meetups_db:db -p $STAGE_PORT:8000 --name meetups_app meetups python
manage.py runserver 0.0.0.0:8000
 	;;
     "local")
-	docker run -d --link meetups_db:db -p 80:8000 --name meetups_app meetups python manage.py
runserver 0.0.0.0:8000
+	docker run -d -v `pwd`:/project --link meetups_db:db -p 80:8000 --name meetups_app meetups
python manage.py runserver 0.0.0.0:8000
 	;;
 esac
 



Mime
View raw message