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.
Multiple Instances of Webpacker #ruby #rubydeveloper #rubyonrails #Multiple #Instances #Webpacker #webpacker https://rubyonrails.ba/link/multiple-instances-of-webpacker