I want use always thin when I start my rails server in development mode.
By default it webrick to use. So I add thin in my Gemfile
gem 'thin', :group => 'development'
Now If I want use it to launch my server in development mode I mandatory define it.
bundle exec rails s thin
If I don't define it, it's always use webrick. So How define using thin by default ?
Go to your browser and open http://localhost:3000, you will see a basic Rails app running. You can also use the alias "s" to start the server: bin/rails s . The server can be run on a different port using the -p option. The default development environment can be changed using -e .
The problem could be that webpacker isn't stalled or your system can not locate it. So installing webpacker can be your next step. Try running this command in your terminal. After running the command navigate to your rails application and run the rails server command.
Normally in your terminal you can try Ctrl + C to shutdown the server. And this will go back into the process, and then quit out of Rails s properly.
Instead of rails s
just type :
>> thin start -p 3000
Where 3000 is the number of your port.
You can also specify an enviornment :
>> thin start -e production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With