-
Notifications
You must be signed in to change notification settings - Fork 147
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
should i add a routes.rb to the assets_path? #146
Comments
@huobazi Your |
@aaronjensen if i add a new route or change a route, the path the xxx_uath() in routes.js will be changed |
I don't know how it handle mina, but capistrano handle changed assets by running every time rake task |
@le0pard |
I think, it is problem of mina, because in this case, if you have erb code in js - it also will not run this task. Example: var SomeVar = <%= TIMEZONES_CONSTANTS.to_json %> If you will change constant TIMEZONES_CONSTANTS in Ruby - this code will not change, but should be recompiled. js-routes have hook https://github.com/railsware/js-routes/blob/master/lib/js_routes/engine.rb#L17 which check So answer very simple: |
@huobazi @le0pard Ironically, I just ran into this issue in a different context. We are working on some Cucumber tests and Capybara sets a different port for the app to run on every test run. Since the |
this is a mina problem. It uses a diff to see if any assets files have been changed before attempting to precompile them. There are two solutions:
|
Maybe you can run force vs not force based on if there are changes in routes.rb. If it is possible in mina, it should help you. |
I want to use mina for deploy my rails app,
and a see mina use
diff
to check if the files was changedhttps://github.com/mina-deploy/mina/blob/3743585210c6687a8c9c18ca6bfc8a28204d674a/lib/mina/rails.rb#L197
so i think if i should add the
routes.rb
to assets pathhttp://nadarei.co/mina/docs/lib/mina/rails.html#asset-paths
https://github.com/mina-deploy/mina/blob/master/lib/mina/rails.rb#L53
should do a assets.paths?
or only setting it in mina
any response will be greatly appreciated.
The text was updated successfully, but these errors were encountered: