Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why css and js path is mismatched #739

Open
vipanwebdeveloper opened this issue Jun 27, 2017 · 2 comments
Open

Why css and js path is mismatched #739

vipanwebdeveloper opened this issue Jun 27, 2017 · 2 comments

Comments

@vipanwebdeveloper
Copy link

any body knows? why css/js path is changed on heroku to localhost?
like i need to add 'css/' or 'js/' in files for heroku

or i can add a condition using some type of environment variables??

is their any hook available for geddy's "Application Controller"

@mde
Copy link
Contributor

mde commented Jun 27, 2017

Should definitely use a relative path, or hostname set by env variable. I can't remember how it's implemented, but that's how it should work.

Are you sure you're starting your app in 'production' environment on Heroku?

And yes, there are hooks. You might be looking for before filters: http://geddyjs.org/reference#controllers_before

@mde
Copy link
Contributor

mde commented Jun 27, 2017

Let me know if that gets you fixed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants