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

Server Bundle getting deleted on deployment #1245

Closed
justin808 opened this issue Jan 27, 2020 · 1 comment
Closed

Server Bundle getting deleted on deployment #1245

justin808 opened this issue Jan 27, 2020 · 1 comment

Comments

@justin808
Copy link
Member

Problem: Your (non-hashed, not-in-manifest) server bundle is deleted during deployment.

If you've seen the "Removed " in your deployment logs:

       Asset precompilation completed (314.62s)
       Cleaning assets
       Running: rake assets:clean
       RAILS_ENV=staging environment is not defined in config/webpacker.yml, falling back to production environment
       Removed /tmp/build_a0d4d074503e2eda0ed90677b4aceb17/public/webpack/production/server-bundle.js
-----> Detecting rails configuration

and you got an error like this in your error tracking system:

ActionView::Template::Error
No such file or directory @ rb_sysopen - /app/public/webpack/production/server-bundle.js

The fix is to ensure that your server bundle is hashed.

I'll have some details on this issue over the coming days.

Related links:

@justin808
Copy link
Member Author

This was fixed on the master branch for Webpacker:

rails/webpacker#2443

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

No branches or pull requests

1 participant