Multiple Instances of Webpacker

07-May-2020 1795
I am a big fan of OS X of spaces and usually have quite a few instances of VSCode opened in various spaces.One early headache with this approach was Rails starting on port 3000 by default. The fix for this was quite easy. Just add an ENV[1] variable PORT=3002 (or whatever number you choose). The ENV is nice because it isolates the port number I picked from what I check in to git.In my post, Making Rails and Webpacker Feel Faster, I wrote about how I was using a separate Procfiles to start Rails and Webpacker quickly.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle