WebFaction
Community site: login faq

I would ideally like to have the following:

  • a static website hosted by webfaction
  • a git repository hosted by webfaction
  • a clone of that repository on my local machine

and here's the hard part:

  • I want the static website to also be a clone of that repository

In other words, I want to be able to commit files locally, push them to the repo, and then just do a "git pull" to deploy them on the webfaction server.

Now this should be easy: I should just be able to clone the repo on webfaction, then change my static files directory in webapps to be a symbolic link to the git repository. However, I can't do this, because webfaction's permissions won't let me change the static folder in to a symbolic link. I can put a link inside the static folder, but then that means I can't control my index.html and other root-level files.

Can someone please explain to me how I can get my (whole) static folder to be a clone of my git repository (or a symbolic link to said clone)? This seems like such a basic thing there must be a way to do it ... right?

asked 07 Mar '14, 03:18

machineghost
1315
accept rate: 0%


Make your clone somewhere else in your home directory, like /home/you/your_static_clone.

Then, create a new "symbolic link to static-only app" app via our control panel, using "/home/you/your_static_clone" as the symlink path.

Hope that helps!

permanent link

answered 07 Mar '14, 19:56

seanf
12.2k41836
accept rate: 37%

edited 07 Mar '14, 19:56

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
×31

question asked: 07 Mar '14, 03:18

question was seen: 3,233 times

last updated: 07 Mar '14, 19:56

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