thomas4135
thomas4135

hi, we have three development environments for my team. we use git and would like to use october cms for a project. laravel was great because we could connect to our custom databases depending on what environment the application was located, simply by configuring the bootstrap/start.php file. does october cms allow this functionality? if so HOW? thanks in advance

mja
mja

+1 I need help with this aswell. Anyone figured it out yet?

Mohsin
Mohsin

I wrote a blog post on this. I think it's what your looking for?

Flynsarmy
Flynsarmy

October sits on top of laravel so you can set different environments for different installs and create your /config folders accordingly. Check the laravel 4 docs on how to do that.

Alternatively (and preferrably), just drop in a .env file into your root directory for each server and use env() in your config files. Docs here.

Edit: Just saw Mohsin already linked to his blog post. Nice one!

Last updated

daslicht
DMeganoski
DMeganoski

hmm... well on a related note. here is a short essay I wrote in response to someone asking about a multi-tenant setup in help & support.

https://octobercms.com/forum/post/htaccess-for-two-instances-on-same-server

1-6 of 6