Reputation: 554
My mad libs game (Ruby/Sinatra backend, most logic is JS/jQuery, data is stored in json files) runs fine on my Mac and my Ubuntu VirtualBox, but when I installed it on repl.it (and made a few changes that seemed indicated by their example script).
When I "start" the script on repl.it, here, I get the following error message at the location where it's supposed to show up:
Unable To Wake Up
30 seconds.Your repl did't wake up in time. Please try again in 30 seconds.
I've never been able to run it even once on repl.it. Any ideas about why not? I'm totally new to repl.it and I can't find any help files. It seems to be a new service.
TIA.
Upvotes: 1
Views: 384
Reputation: 26778
You need to add
set :bind, '0.0.0.0'
You can see https://repl.it/languages/sinatra for an example.
This is something you frequently need to do when running web servers on remote machines, since they forward requests from the public internet to this IP address.
I forked this and made the change, and although there was another error (can't find main.erb), it at least solves the issue this question is about.
Upvotes: 2