VII. A few notes about deploying your application

Now that you have a working application, you might want to publish it on hosts. Handling this is quite easy, the longer part being sending the project's files (using FTP, Git, or any other tool depending on your hosting service), but there are a couple of things you should know.

First, you have to set your apache FUEL_ENV environment to production. An easy way to do that is to edit public/.htaccess and uncomment the second line:

SetEnv FUEL_ENV production

Keep in mind, that in this case you will have two different files between your local environment and your production environment, so it will be prone to human error. You are recommended to read the official documentation at http://fuelphp.com/docs/general/environments.html (It can be accessed through the FuelPHP website by navigating to DOCS | TABLE OF CONTENTS | FuelPHP | Environments)

If you are using a shared hosting solution, keep in mind that, as explained in The simplest way section, you should take additional security precautions.

This tutorial contains the first chapter of my book FuelPHP application development blueprints. I released this chapter freely so that you can have an idea of what the book looks like and get a first overview of the FuelPHP framework. Don't hesitate to comment or contact me if you have any question. You can buy the book on the Packt Publishing website, on Amazon, on BN.com and most internet book retailers.