Laravel 4.x setting in production and development

Surely, in production use you don’t want to show any error to the user. In simple way, you can set debug to false:
/app/config/app.php

return array (

'debug' => false,

[...]

)

For complete setting for development and production, you can try;
/app/bootstrap/start.php

$env = $app->detectEnvironment(array(
	'local' => array('localURL.com'),
	'production' => array('productionURL.com')
));

Define your file/folder configuration for every situation (development/production):

app
app/config
app/config/local
app/config/local/app.php
app/config/local/database.php
app/config/production
app/config/production/app.php
app/config/production/database.php
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s