WebFaction
Community site: login faq

Hi all

Im trying to setup git. Ive come to the point where I have no further ideas what Im doing wrong.

Prod dir: /domain/system
Wanted dev dir: /dev/domain/system
cd /domain/system
git init
git add .
git commit -m 'first commit'

cd /
mkdir dev
cd dev
mkdir domain
cd domain

git clone /domain/system

vim index.php (making some changes, and saving)
git add index.php
git commit -m 'some changes'
git push origin

what now happends is that it starts to work for a moment and I though it would work but Nothing shows up in my production directory.

[master] $ git commit index.php
Created commit 9804527: made some changes to test :)
1 files changed, 1 insertions(+), 1 deletions(-)
[master] $ git push origin
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 321 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
To /home/domains/domain/system/.git
abf3b08..9804527 master -> master

I thought it should work now in my prod dir (domain/system) but no... what is wrong?

asked 08 May '12, 02:04

webby
111
accept rate: 0%


You would also need to setup apost-recieve hook as shown here: http://community.webfaction.com/questions/1246/using-git-with-applications

Once, that is done the above setup should start working.

permanent link

answered 08 May '12, 02:30

neeravk
1.5k3412
accept rate: 41%

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:

×111
×97
×33
×7
×2

question asked: 08 May '12, 02:04

question was seen: 2,799 times

last updated: 08 May '12, 02:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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