ratchetphp / socketo.me

Ratchet's Website
http://socketo.me
Other
22 stars 40 forks source link

Demo folder missing #25

Closed rhmoult closed 9 years ago

rhmoult commented 9 years ago

Chris, I'm a big fan of RatchetPHP, and would like to extend your demo app. I cannot get it working, however.

I have set up an Ubuntu server with nginx, installed php-fpm and php-cli, cloned your git repo, and ran composer.phar install. localhost/socketo.me/web/index.php works fine, but the demo link takes me to /demo, which doesn't exist on the filesystem.

I'd much appreciate any insight you can provide.

-Rich

rhmoult commented 9 years ago

I should mention that php bin/run-all-the-things.php results in a blank page when I visit.

cboden commented 9 years ago

Make sure you have all files go through index.php in your nginx config, like this. The website is a Silex app and /demo is dynamically generated.

Your browser doesn't visit bin/run-all-the-things.php you have to run that from your CLI.

rhmoult commented 9 years ago

That was a big help. Thanks! My next issue is that when the demo starts up, I am in offline mode and unable to chat. I am going to spend the next 9 hours on getting a good understanding of the existing codebase, but I'd much appreciate any thoughts you have on where I should look to resolve this issue.

rhmoult commented 9 years ago

After checking out your youtube video presentation to Ski PHP, I see that the issue was my call to open the server did not include '0.0.0.0'. You answer this question in about 45 seconds at https://youtu.be/04jVCKLXttk?t=1020

Thanks again!

cboden commented 9 years ago

Awesome! :+1: