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

fos_js_routes is no longer suffixed in prod environment #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fos_js_routes is no longer suffixed in prod environment #1

wants to merge 2 commits into from

Conversation

jdubuisson
Copy link

the existing suffix is kept but deprecated.
See Victoire/victoire PR 1052 for the matching change

the existing suffix is kept but deprecated
@@ -33,7 +33,8 @@ namespace :fos do
DESC
task :dump do
on roles(:app) do
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes_prod.js"
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes.js"
execute "cp web/js/fos_js_routes.js web/js/fos_js_routes_prod.js"
Copy link
Member

@alexislefebvre alexislefebvre May 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdubuisson I'm wondering if cd #{release_path} && is required in order to avoid side-effects.

Are we sure that the second line is executed in the same context than the first line? Maybe these commands are executed by separated processes than don't share the same current directory.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 better safe than sorry 😃

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

Successfully merging this pull request may close these issues.

2 participants