oauth2-demo-php icon indicating copy to clipboard operation
oauth2-demo-php copied to clipboard

Added Vagrantfile for easy launching

Open bluebaroncanada opened this issue 7 years ago • 10 comments

bluebaroncanada avatar Sep 07 '17 12:09 bluebaroncanada

Thanks!

bluebaroncanada avatar Sep 07 '17 14:09 bluebaroncanada

A Dockerfile would also be a nice touch

bshaffer avatar Sep 11 '17 19:09 bshaffer

Also, it would be good to link to Vagrant installation in the README for users who want to try Vagrant but do not have it set up.

bshaffer avatar Sep 11 '17 19:09 bshaffer

I could do that, but there are several issues with Docker that really boil down to: Docker is meant for production environments. The idea is to have as little running on one container as possible; separating the web server from the DB. Even setting up SSH is a PITA, whereas for Vagrant you just type vagrant ssh. There's also issues with getting it to run on several different systems including, for example, Windows Home editions. As for the Vangrant installation, I could also do that, but I'd rather just link to Vagrant's own documentation so it's always fresh. Maybe a couple lines of advice. I figure it would be the same as explaining how to install Git. I'll defer to you on both, though. I guess I'd start by trying to find an Docker with xdebug already setup.

bluebaroncanada avatar Sep 11 '17 19:09 bluebaroncanada

No, I totally agree about linking to vagrant's documentation. Currently there is no link. Also, I believe further setup is required, as I was receiving errors. So really, just do a few things to flesh out the vagrant instructions:

  1. Link to vangrant's install instructions
  2. Include any additional setup (to resolve the above errors)
  3. Include instructions on how to load the demo (i.e. open localhost:8080)

bshaffer avatar Sep 11 '17 21:09 bshaffer

Is that after the changes I posted about an hour ago?

bluebaroncanada avatar Sep 11 '17 21:09 bluebaroncanada

Can you try checking out my latest changes and then run vagrant destroy --force && vagrant up?

bluebaroncanada avatar Sep 11 '17 22:09 bluebaroncanada

@bluebaroncanada unfortunately I'm still getting the error:

PDOException in Pdo.php line 205:
SQLSTATE[HY000]: General error: 14 unable to open database file

bshaffer avatar Sep 11 '17 23:09 bshaffer

So weird. Are you on Mac or Linux by chance and you don't have 777 as the permissions for that directory? Can you give me a list of instructions you're running from git clone ... to vagrant up? It should be so that all you have to do is those two commands.

bluebaroncanada avatar Sep 12 '17 00:09 bluebaroncanada

@bshaffer did you check the permissions on your data directory?

bluebaroncanada avatar Sep 15 '17 14:09 bluebaroncanada