Forem Creators and Builders 🌱

Discussion on: Unelma.dev is live

 
tespok profile image
tespok • Edited

Yes, I know through .env file but the problem is whenever I switch that it throws me following error message:

13:45:19 webpacker.1 | webpack dev_server configuration not found in /home/udev/forem/config/webpacker.yml[production].
13:45:19 webpacker.1 | Please run bundle exec rails webpacker:install to install Webpacker
13:45:20 webpacker.1 | exited with code 1
Enter fullscreen mode Exit fullscreen mode

then I tried running bundle exec rails webpacker:install but does not seem to resolve the issue

Thread Thread
 
maestromac profile image
Mac Siri

bin/webpack-dev-server is a development-only tool. When app runs on production you don't need to run it.

Thread Thread
 
tespok profile image
tespok

Okay, but it throws error like before when changing the .env variable from development to production

Thread Thread
 
maestromac profile image
Mac Siri

Can you please elaborate on which cloud provider you chose? did you go down the selfhost documentation? or did you tried hosting via your own methods?