WebFaction
Community site: login faq

I have 2 apps django app and static app on webfaction... in my github account - same thing static and django app. How can i pull from github properly to each app on webfaction

asked 26 Jun '12, 07:29

lab01
112
accept rate: 0%


For each directory that you want to pull from github:

cd ~/path/to/directory
git init
git config remote.origin.url <url of your repo on github>
git pull

Hope that helps!

permanent link

answered 26 Jun '12, 14:50

seanf
12.2k42136
accept rate: 37%

Thanks for your help. If i have static and django app in single repo how to make pull?

(27 Jun '12, 08:50) lab01

You would have to manually copy into the different places after the repo was pulled down, or use a 'symbolic link to static only' application instead of a regular 'static only' application which points to a static directory within the repo.

(27 Jun '12, 20:41) johns

Thanks a lot guys! That's what i need

(29 Jun '12, 02:11) lab01

I'm sorry for noobs questions.. How to make automatic pull to webfaction when i push to github? Thanx!

(29 Jun '12, 05:44) lab01

You can set up a cronjob to do a git pull from your Webfaction account every few minutes. Please check our docs on setting up cronjobs.

(29 Jun '12, 06:07) todork

Thank for your help! Is it correct crontab? /5 * * * su -s /home/lab01 r05 /home/lab01/webapps/lab01calc/git git pull lab01calc master

(29 Jun '12, 07:29) lab01

No, you can't use "su". You would have to create a shell script for this, and call that shell script from the crontab. If you have problems creating the shell script, please feel free to open a ticket.

(29 Jun '12, 07:35) todork
showing 5 of 7 show 2 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 26 Jun '12, 07:29

question was seen: 2,540 times

last updated: 29 Jun '12, 07:35

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM