Welcome Guest, Not a member yet? Register   Sign In
Allow more environments
#3

(This post was last modified: 08-02-2017, 10:06 AM by katz.)

(08-02-2017, 09:12 AM)Martin7483 Wrote: You have described 3 environments if I am not mistaken.

So why can't you do this?

Development office                 => CI_ENV = "development"
Development production server => CI_ENV = "testing"
Production server                   => CI_ENV = "production"

Four:
Code:
Local development                      => CI_ENV = "development" // db ip: localhost, dbname: name1
Office testing                         => CI_ENV = "docker" // db ip: externalhost, dbname: name1
Production server testing subdomain    => CI_ENV = "testing" // db ip: localhost, dbname: name2
Production server real site            => CI_ENV = "production" // db ip: localhost, dbname: name1

All it would take is to remove the default case to a 503 error in the ENVIRONMENT switch, but I know changes have to be justified, so I didn't go straight for a pull request.
Reply


Messages In This Thread
Allow more environments - by katz - 08-02-2017, 06:59 AM
RE: Allow more environments - by Martin7483 - 08-02-2017, 09:12 AM
RE: Allow more environments - by katz - 08-02-2017, 10:02 AM
RE: Allow more environments - by kilishan - 08-02-2017, 10:29 AM
RE: Allow more environments - by versalle88 - 08-03-2017, 04:53 AM
RE: Allow more environments - by kilishan - 08-03-2017, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB