Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Openshift nodejs javascript file location

I push my application with Git bash in Openshift nodejs. My sass1.js file is in the js folder. In my index.html file I refer to it as

<script src="./js/sass1.js"></script>

But I get this error in when I look in Firefox

"NetworkError: 404 Not Found - ...js/sass1.js"

like image 250
user1881214 Avatar asked Aug 23 '26 15:08

user1881214


1 Answers

You'll want to reference your code locations with the appropriate environment variable. You can also check out https://www.openshift.com/videos/getting-started-with-nodejs-on-openshift for more information on nodejs with openshift.

EDIT

On second thought I think this thread will point you in the right direction https://www.openshift.com/forums/openshift/pictures-css-where-can-i-store-resources.

like image 56
niharvey Avatar answered Aug 26 '26 06:08

niharvey