Compile locally for production?
See original GitHub issueHi
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Test react production build locally | by Samrat Shaw - Medium
In this article, we will look at three ways of testing your production build locally, namely: http-server; serve; Python web server (Mac only)....
Read more >How to run production react app in local with local back-end
After running the command serve -s build you can access your production build at localhost (on the specified port).
Read more >How to Run an Angular Production Build Locally
A tutorial that shows you how to serve your ng build --prod files locally without pushing the production files to your remote production...
Read more >Build for production - Polymer Project
Your builds will be generated under the build folder, ready for deployment. You can also serve a build locally. For example, from your...
Read more >Deployment | Create React App
npm run build creates a build directory with a production build of your app. Set up your favorite HTTP server so that a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okey, here is my deployment log:
so, it seems that it does compile however, here is my
config/webpacker.yml
:Any idea?
I deploy via Capistrano… I will set
compile: false
to save server power…