0
votes

I've been working on a rails app previously, the server worked fine. I closed it and made a new one https://bitbucket.org/ScarletMcLearn/sample_app

and now when I started the server, the http://localhost:3000, http://localhost:3000/static_pages/home, and anything else remains blank.

I've tried Googling and reading some other Stackoverflow posts, but they aren't working for me. I'm using a Mac - if it helps.

Really hope you can help me out here, I'm new in Rails, hence simple instructions appreciated. All files are in the Bitbucket link.

Thanks for the read. :D

After deploying rails server:

Macs-MacBook-Pro:sample_app mac$ rails server => Booting Puma => Rails 5.0.0.1 application starting in development on http://localhost:3000 => Run rails server -h for more startup options Puma starting in single mode... * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Use Ctrl-C to stop

1

1 Answers

0
votes

There is already a previous server running on localhost:3000

In your app go to:

tmp/pids/server.pid

Delete the number inside that file and save it.

Now quit your rails server And run rails server -p 4000(anything else than 3000).

And go to that new address https://localhost:4000.

OR

Restart you pc ( you don't want to go that evil way ).