03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deployment 105<br />

.<br />

It’s important that you copy the distribution files to a target outside of your source folder. The<br />

copy command copies ./ which means a target inside will lead to an “infinite copy loop” where the<br />

command tries to copy the distribution folder into itself an infinite number of times.<br />

To get around this; I guess you could target sources files individually (or in folders). It’s likely that<br />

you will be running the copy command from a local machine, so there’s little harm in copying the<br />

distribution files into a directory outside of the one your application files are in.<br />

Removing Development Files<br />

Next up, we need a command to remove any temporary/development files. We’ll start by creating a<br />

config file in which these files are listed:<br />

1

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

Saved successfully!

Ooh no, something went wrong!