-
Notifications
You must be signed in to change notification settings - Fork 757
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
Compile locally for production? #969
Comments
react-rails-example-app (master)$ rails webpacker:compile
Webpacker is installed 🎉 🍰
Using /Users/me/source/react-rails-example-app/config/webpacker.yml file for setting up webpack paths
Compiling…
Compiled all packs in /Users/me/source/react-rails-example-app/public/packs
react-rails-example-app (master)$ I was able to When you run
|
oh, it was because I am on rails 4, I get to use rake, so, it worked as:
but I got this error:
|
That looks like an error with browserlist package that its outside of my knowledge I'm afraid. Did you successfully manage to compile the react-rails-example-app? |
Yes, I managed to compile the react-rails-example-app successfully, but not my app 😿 |
@BookOfGreg I found a solution to my problem, I just removed the css files from the project, and it compiled normally 👍 Now I have to set What do you recommend? |
If you deploy via Git and you want to pre-compile your assets, then you will have to include the public packs you want to deploy with. The process I follow is to build on CI, and then tar the public folder and deploy the |
I deploy via Capistrano.. I will set |
That sounds good, if it works for you would you please close the issue. Thank you. |
Sure, I will close it once I try deployment |
Okey, here is my deployment log:
so, it seems that it does compile however, here is my
Any idea? |
I got around this by using Rsync and a rake task for capistrano.
|
here is what has worked for me, I will close the ticket now
|
Hi
I need to know how would I compile locally for production rather than at server, as my server resources can not afford the compilation process.
I was looking at this issue at
webpacker
I tried :
bundle exec rails webpacker:compile
, I got error:Error: Command 'webpacker:compile' not recognized
but I am already have
gem 'webpacker'
in my Gemfile and its installed..Can you please tell me how did you compile locally? I just need to locally compile the react project, not the whole assets.
The text was updated successfully, but these errors were encountered: