Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Symfony2 Essentials

You're reading from   Symfony2 Essentials

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781784398767
Length 158 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Preparing an application

There are a few steps that you should consider while preparing your application for production. It usually involves the following steps:

  1. Checking the code against debug variables or functions.
  2. Customizing error pages.
  3. Verifying the production server requirements.
  4. Verifying the application against known framework security issues.
  5. Updating the basic assets and metadata.

Let's discuss the preceding points.

Checking the code against debug code

Often, when you create your app, you are adding various debug codes to help you with debugging. Before deploying your work, it is important to verify how Symfony2 will behave in the production mode. Let's run our application and verify this. To run a built-in server in the production mode, execute the following:

$ php app/console server:run --env=prod

Now, when you run your app in the browser, you will notice that it doesn't have a web developer toolbar anymore, although the login page looks normal as usual. Let's...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image