03.12.2015 Views

laravel4cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Deployment 103<br />

.<br />

This was extracted from ∼/.ssh/config.<br />

.<br />

The your_user account needs to be the same as the one with which you SSH’d into the remote<br />

server and added the authorised key.<br />

The your_identity_file is the name from step 3 (not ending in .pub).<br />

Now, when you type ssh example.com (where example.com is the name of the domain you’ve been<br />

accessing with SSH); you should be let in without even having to provide a password. Don’t worry —<br />

your server is still secure. You’ve just let it know (ahead of time) what an authentic connection from<br />

you looks like.<br />

With this configuration in place; you won’t need to do anything tricky in order to get Rsync to work<br />

correctly. The hard part is getting a good connection…<br />

Distribute Command<br />

In order for us to distribute our code, we need to make a copy of it and perform some operations on<br />

the copy. This involves optimisation and cleanup.<br />

Copying Files For Distribution<br />

First, let’s make the copy command:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!