By ebeecroft
I have tried basically everything to get my website Duelingpets to work with the new version of rails but each time it is continously failing. I tried to get it working on Apache but it kept displaying index of / instead. I tried to get it working with nginx on its own but it only displayed the nginx welcome screen instead of ruby. I have tried nginx with passenger and that was equally a failure as well.
What am I doing wrong and why does this continue to not work? I have followed all the digital ocean tutorial steps but none of them seem to actually fix things. I have yet to get an answer or solutions to this problem and I been creating several different droplets just to find out how to get it to work. Why is it that Rails 5.2 plays perfectly well with my linux laptop but if I try to get it working with an ubuntu server on digital ocean it completely fails? Why???
I am kind of at a loss as to why this is happening. Can someone please help me to solve this issue as I want to have my site up and running on the newer version without having to rely on my older version.
Here are the guides I used for the work: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, You need to edit the rails.service file to set the ‘default’ site /etc/systemd/system/rails.service
[Unit] Description=ExampleApp <-- change this to Duelingpets Requires=network.target
[Service] Type=simple User=rails Group=rails WorkingDirectory=/home/rails/example/ <-- change this to the new path ExecStart=/bin/bash -lc ‘bundle exec puma’ TimeoutSec=30s RestartSec=30s Restart=always
[Install] WantedBy=multi-user.target
It reads like you’ve had many stabs at this and are fed up with how things are going. But some things require a closer look to get them ironed out. Why don’t you set things up per the tutorial with your Rails app and I’ll take a look at whatever issue you’re still having.
Cheers
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.