Re: How can I distinguish between production and development?



["Followup-To:" header set to comp.lang.php.]
Ikke wrote:

hier.be is registerd with conneceon.com./ If that is not you, just add
..invalid to your emailadress.

The ip-number should be a better way distinguish between development
and production environments and just see to not commit the config file
that you use on the development environment to the cvs/svn.

What if there is no way to tell the hostnames or IP addresses apart?

Use different hostnames and IP adresses. e.g. localhost can be named
different names. It can also have different IP adresses.

Just add the following to your hosts file
127.0.0.127 test

Now when you go to 127.0.0.127 or to http://test you wil arrive at the
local server.

Next configure e.g. Apache that it points things like http://test to the
test enviroment.

I do not even use a different IP. Just a different name and have
something like the following in my hosts file
127.0.0.1 localhost php test

When type something like that in my browser, I will see three different
sites. The rest is up to Apache.

houghi
--
Filled with mingled cream and amber I will drain that glass again. Such
hilarious visions clamber Through the chambers of my brain -- Quaintest
thoughts -- queerest fancies Come to life and fade away; Who cares how
time advances? I am drinking ale today. -- Edgar Allan Poe
.



Relevant Pages

  • Re: Basic JSP question
    ... Tomcat will use more CPU and be slower serving huge files. ... I was fortunate to work with Apache Web Server in some depth a few projects ago. ... The ready availability project-wide of the three environments, held in check by social rules rather than deployment barriers, contributed mightily to their similarity, and thus the applicability of test results. ...
    (comp.lang.java.programmer)
  • RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)
    ... I'm on Linux too, so never mind Windows for the moment. ... So what's the difference between our two environments? ... That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache ...
    (php.general)