Re: How can I distinguish between production and development?
- From: houghi <houghi@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Dec 2008 15:33:08 +0100
["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
.
- Prev by Date: Re: Throw Exceptions from setters: second opinion
- Next by Date: Re: Query String
- Previous by thread: Monogram Multicolore Griet MM M40203 Collection
- Next by thread: Re: How can I distinguish between production and development?
- Index(es):
Relevant Pages
|