WebFaction
Community site: login faq

I installed the git-app and wanted to init a repo in ~/webapps but that folder is owned by root. I could probably just sudo but I was wondering if there's any reason it was made like this? I have both a django app and my static media under ~/webapps so it would facilitate my pushing/pulling..

asked 05 Nov '10, 21:56

hap
1614
accept rate: 0%


Hi,

You can't sudo because it is a shared server and you don't have root access. :)

~/webapps is owned by root so that the control panel can install apps there.

The easiest way to what you are trying to do is:

  1. Put your static media inside your Django app
  2. Create a symlink to static-only application and put the path to your media directory in

That way you can still push/pull as you would and serve your media through Nginx.

permanent link

answered 05 Nov '10, 22:06

klynton
1.6k1210
accept rate: 41%

Thanks! Works like a charm (after I remembered to add the new symlink app to my website).

(05 Nov '10, 23:22) hap

Great! Glad I could help.

(05 Nov '10, 23:36) klynton
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
×24

question asked: 05 Nov '10, 21:56

question was seen: 2,767 times

last updated: 05 Nov '10, 23:36

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