Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versionning of the config folder #1015

Closed
flo-sch opened this issue Mar 21, 2015 · 4 comments
Closed

Versionning of the config folder #1015

flo-sch opened this issue Mar 21, 2015 · 4 comments
Assignees

Comments

@flo-sch
Copy link
Contributor

flo-sch commented Mar 21, 2015

I am using October with CLI only for installing / updating / deploying / migrating etc.

Basically when I work, I pull the repository, launch apache (Mamp mostly or linux httpd on production),
And one bad point for me did that the config is versioned.

I updated my project .gitignore to exclure app.php (working with vhosts --> URL change) and database.php

But it seems like a hacky way...

Symfony natively uses a parameters.yml file, excluded of versionning (but with an exemple parameters.yml.dist which is versionned), only containing local specific informations like database password etc.

Would this solution be possible with October ?
(I can create a PR but first I would like to have feedback about it)

Otherwise, if you dislike having a parameters file, could we think to version an original copy of the confit file, excluding a local folder used for the app ?
(For instance config/app/database.php etc.)

Except if I missed a main part of enjoying October ?

@daftspunk
Copy link
Member

Use a folder like /config/production and then set your APP_ENV to production

@flo-sch
Copy link
Contributor Author

flo-sch commented Mar 21, 2015

Okay, I missed something. Thanks ! Could you just tell me where is this APP_ENV ?

@NemoD503
Copy link
Contributor

You can set APP_ENV in the .env file in the root of your project,
More details in the Laravel documentation
http://laravel.com/docs/5.0/configuration#environment-configuration

@flo-sch
Copy link
Contributor Author

flo-sch commented Mar 21, 2015

Perfect, works fine, thanks!
I had never used Laravel before, that's why I'm not aware of this environment configuration.

Wouldn't this trick have his place in the Installation doc page ? Or maybe the CLI page ?
A chapter about "Environment" maybe ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants