Reputation: 147
I am using Git to manage code on my webserver. I write the code on local machine, push it to git hub and pull it form my server.
Configuration on my local machine and server are quite different.
The problem is how to configure git in such a way that it works both on server and local machine without need to manually changing the config files.
I know local and production env but the problem is in app.php config file, on local machine i need to load 'debugbar' where as on server i dont need to.
Upvotes: 0
Views: 98
Reputation: 9444
Regarding debugbar
, you can do the following in routes.php
or a ServiceProvider
:
if(env('APP_ENV') != 'local') {
Debugbar::disable();
}
Upvotes: 1