WebFaction
Community site: login faq

I have an dev app that I want to upload and although I can see the benefits of setting up a static-only app for serving media files, wouldn't it break all the links to those files in my app? For example: when building the app I place an image in '/public/images/image.jpg' and i would reference it '/images/image.jpg'. Now with my static-only app served to '/media/' I would need to change the references throughout the app to '/media/images/image.jpg'. Unless there is a way of redirecting or creating a symlink ?

asked 05 Sep '13, 08:13

piker
34
accept rate: 0%


As long as you serve the static-only app on whatever URL path your site is expecting, then nothing should break.

If you want to symlink to an existing directory that contains your static media, then you can use the "Symbolic link to static-only" application for that purpose.

Hope that helps!

permanent link

answered 05 Sep '13, 15:13

seanf
12.2k41836
accept rate: 37%

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:

×2

question asked: 05 Sep '13, 08:13

question was seen: 1,059 times

last updated: 05 Sep '13, 15:13

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