WebFaction
Community site: login faq

I'm trying to get an app with Rails API back-end and AngularJS front-end up and running. At the moment I'm getting a ton of errors, because my assets are trying to be accessed at a path like this:

http://[username].com/assets/lodash/dist/lodash.self-b4b6a3ac2a4512a740ef7a938fb4b1a50ce5bce0547257f3ba6df83c563766aa.js?body=1

but they are actually located at:

/home/[username]/webapps/seaspot/current/bower_components/lodash/dist/lodash

And everything else for my angular app is trying to be accessed at a path like this:

http://[username].com/assets/angular-app/controllers/BeachController.self-13d0603da1d7f3d1976f3323bd53437b923640d61d3901f1cb35af15a58c7488.js?body=1

but those are actually located here:

/home/[username]/webapps/seaspot/current/app/assets/javascripts/angular-app/controllers/BeachController

How do I get these to point to the right place? Do I need to do something in the nginx.conf file or something locally within my app?

I'm new to all of this, so any help would be very appreciated.

asked 30 May '16, 19:33

lisamarie616
112
accept rate: 0%


Find where in template code/HTML the hyperlink is being generated and edit the URI there to include the correct sub-path.

permanent link

answered 30 May '16, 22:20

johns
5.3k312
accept rate: 23%

edited 30 May '16, 22:20

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:

×108
×17
×3

question asked: 30 May '16, 19:33

question was seen: 1,695 times

last updated: 30 May '16, 22:20

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