note 107843 added to features.commandline.webserver

From: Date: Fri, 09 Mar 2012 00:25:30 +0000
Subject: note 107843 added to features.commandline.webserver
Groups: php.notes 
Request: Send a blank email to php-notes+get-186558@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 41.52.207.238 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.webserver.php Edit -- https://master.php.net/note/edit/107843 Del: integrated -- https://master.php.net/note/delete/107843/integrated Del: useless -- https://master.php.net/note/delete/107843/useless Del: bad code -- https://master.php.net/note/delete/107843/bad+code Del: spam -- https://master.php.net/note/delete/107843/spam Del: non-english -- https://master.php.net/note/delete/107843/non-english Del: in docs -- https://master.php.net/note/delete/107843/in+docs Del: other reasons-- https://master.php.net/note/delete/107843 Reject -- https://master.php.net/note/reject/107843 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186558) next »