From 96d30c6a5101e7fa49d125d3fb8a7928a6be5a3b Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Thu, 25 Jun 2015 13:15:30 +0000 Subject: [PATCH] Adding info for pull and push --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e77673b..30bac79 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,16 @@ sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -v ## Special Features +### Push code to Git +To push code changes back to git simply run: +``` +sudo docker exec -t -i /usr/bin/push +``` +### Pull code from Git (Refresh) +In order to refresh the code in a container and pull newer code form git simply run: +``` +sudo docker exec -t -i /usr/bin/pull +``` ### Templating This container will automatically configure your web application if you template your code. For example if you are linking to MySQL like above, and you have a config.php file where you need to set the MySQL details include $$_MYSQL_ENV_MYSQL_DATABASE_$$ style template tags.