openminds / sneakers

Sneakers is a simple, fast way to mimick Openminds Shared and Cloud hosting environments using vagrant/virtualbox, and provisioned by Chef.
25 stars 11 forks source link

Laravel4 on Sneakers #21

Closed semgovaert closed 11 years ago

semgovaert commented 11 years ago

Hi OM team, I'm 99% sure this is a newbie question, but I'm unable to get a Laravel4 setup running on your sneakers config. The steps that need to be taken: 0/ create new vagrant site and ssh into it — OK 1/ install Composer — http://getcomposer.org/doc/00-intro.md — OK 2/ clone L4 repo — https://github.com/laravel/laravel — OK 3/ install Laravel through Composer — OK 4/ do "php -S localhost:8888 -t public" — OK — I can do this succesfully but I don't know why I should do this on the vagrant setup since it is already listening to 192.168.1.x:yyyy? 5a/ visit localhost:8888 and see the "Hello World" message — NOT OK 5b/ visiting 192.168.1.x:yyyy doesn't work either, returns standard sneakers error view and asks to check logs — nothing to see there

Any help would be appreciated, since we urgently have to change from CodeIgniter to Laravel4 for our new project — http://ellislab.com/blog/entry/ellislab-seeking-new-owner-for-codeigniter

PS, I've also tried: https://github.com/bryannielsen/Laravel4-Vagrant https://github.com/nekwebdev/vagrant-laravel4 But both setups assume there is no sneakers involved so I could not use your config anymore (which is kind of essential if I want to keep publishing on your servers)

Thanks for the help.

Sem

Zhann commented 11 years ago

Hello @semgovaert, can I see your config.yml? I'll try and reproduce the problem.

semgovaert commented 11 years ago

Hi @Zhann — thanks for the fast reply.

laravel2: app_directory: "/Users/semgovaert/vagrantSites/laravel2" type: "php54" http_port: 9004 memory: 1024 mysql_port: 3305

semgovaert commented 11 years ago

Hi @Zhann, I fixed it by downloading L4 from website instead of cloning repo:

1/ vagrant up 2/ download laravel master (zip) from https://github.com/laravel/laravel and rename the download folder to "foo" (example) 3/ put files on vagrant 4/ ssh into vagrant 5/ navigate to /apps/default/foo in console 6/ get composer locally: curl -sS https://getcomposer.org/installer | php 7/ run "php composer.phar install" 8/ navigate to http://vagrant:port/foo/public 9/ all set

Zhann commented 11 years ago

Alright, I'll close this issue then, marking it as resolved. Thanks for the feedback.