php - Laravel and Github - Workflow and Problems -


I now have a Laravel project and I am using Gitanbu for my project.

I have two branches, master and develop.
The problem is now, ...

I have all the files in a file / file. I am using the submleum Lesson 2 and Official Gitub Client when I switch the branches, then I Know that in ST2, in ST2, this is okay.
I have placed sftp-config.json in my guitnower but I have separate FTP data for the master and development to test my changes, I correctly correct the data in ST2 tu on my FTP Sometimes I forget to edit, and accidentally upload to my master / live page.
The same problem for the routes. Php, I have to deactivate SSL in my own routes because developers do not have my wildcard certificates and my Dev branches / FTP runs on dev.domain.tld and my main site is www.domain.tld.

I have created an environment for my ownर्जेज कॉन्फ़िगर्स, one main configuration and "development" config. Is it possible to use config :: get ('app.ssl') in my routes in my filter As::

Root :: Groups (['first' = & gt; ['CSRF', config :: find ('app .ssele')]], function () {root :: Receive ('page', array ('=' as> 'page', 'usage' = & gt; page controller @ mill index '));});

?

My workflow is getting very annoying and sometimes confusing, I have to always check whether I am not uploading stuff on my live server or changing master files.
Any suggestions are highly appreciated!

Of course! Laravel supports environmental configuration outside the box. You can find a lot in that thing you need. However here is an example:

App / Config / AP.php - "Main Config"

  array (// Other configuration entries' Ssl '= & gt; true)  

app / config / local /app.php - Configure environment Local (You can call it to whatever you like)

  array ('ssl' = & gt; wrong // Here we override the value from our main configuration)  

Now make sure that we are the last thing It is to be said that our environment is properly known.
To find an environment, use the Larrange host name, then you need to know how your machine is called, an easy way to do this is with the PHP function

bootstrap / start.php You can define your environment:

  $ env = $ App- & gt; Detect environment (array ('local' = & gt; array ('your-machine-name'), 'other-environment' = & gt; array ('other-machine-name'));  

Comments