note 107843 deleted from features.commandline.webserver by cmb

From: Date: Tue, 01 Sep 2015 17:02:20 +0000
Subject: note 107843 deleted from features.commandline.webserver by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203557@lists.php.net to get a copy of this message
Note Submitter: Stefano F. Rausch ---- To develop / deploy websites in 3 stages, i.e. ( 1 ) locally, ( 2 ) with an access controlled dedicated beta / test website in the www and ( 3 ) the production site, you can have ( 1 ) & ( 2 ) using the same domain name - port free - as follows: - look up the IP address of the beta.web.site and edit the hosts file to reflect: - <IP> beta.web.site - 127.0.0.1 beta.web.site Start the built-in web server to work locally with: - sudo php -S beta.web.site:80 and just hit http://beta.web.site as usual. Switching back and forth between ( 1 ) and ( 2 ) is as easy as telling the php engine not to fake a server any more :) Nice! Happy PHP'ing.

« previous php.notes (#203557) next »