composer create-project laravel/laravel fdb --prefer-dist
Head over to the Homestead folder, and install the project in Homestead.yaml
folders: - map: ~/Google Drive/Sites/laravel/blog to: /home/vagrant/blog - map: ~/Google Drive/Sites/laravel/larabook to: /home/vagrant/larabook - map: ~/Google Drive/Sites/laravel/fdb to: /home/vagrant/fdb sites: - map: learn.app to: /home/vagrant/blog/public - map: larabook.app to: /home/vagrant/larabook/public - map: fdb.app to: /home/vagrant/fdb/public databases: - name: learn - name: larabook - name: fdb
Now to change the
hosts file which is in
/etc/hosts – add this at the end:
Next, if vagrant isn't running you need to run:
to start the server.
You need to run
vagrant provision* I think this is the best one
I have a weired "No input file specified" warning?
Congratulations, you should now be able to find the website here!
If vagrant doesn't run, there is a good chance that Virtual Box isn't working correctly. The best bet is to Restart it * great fix for
Command: ["hostonlyif", "create"] issues
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
When its time to switch off vagrant, run:
Set it up. (i.e. just add a new database with the right name in Sequel Pro)
Now just add an .env file. I.e.
.env.local.php in the root of your app (next to
app). Fill it up like this:
<?php return [ 'DB_HOST' => 'localhost', 'DB_NAME' => 'entry', 'DB_USER' => 'homestead', 'DB_PASS' => 'secret', 'MANDRILL_KEY' => 'XXXXXXXXXXXXXXX', ];
Now go back through and swap out all references to the database password etc with the following
Don't be confused by the local and production environment variable. Just for now, look here:
Put in the details. They should already be about correct, just update the database name.
Fire up Sequel pro, add a new favourite and from the menu at the top,
The settings should be along the lines of the below
We need to add a few migrations, the easiest way by far is using Jeffrey Way's generator class.
sudo vi /etc/nginx/nginx.conf
sudo vi /etc/php5/fpm/php.ini
upload_max_filesize = 2MChange this code above to:
upload_max_filesize = 8M
sudo service nginx restart sudo service php5-fpm restart