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
then I tried running bundle exec rails webpacker:install but does not seem to resolve the issue
@tespok can you tell me which instruction did you follow to get your own selfhost set up? and who is your cloud provider?
but as a sidenote, you can generally change this via environment variable.
Yes, I know through .env file but the problem is whenever I switch that it throws me following error message:
then I tried running
bundle exec rails webpacker:install
but does not seem to resolve the issuebin/webpack-dev-server
is a development-only tool. When app runs on production you don't need to run it.Okay, but it throws error like before when changing the .env variable from development to production
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?