Simple Web Server
This is a handy little tool for spinning up a local web server when you don’t all the features of something like MAMP.
This is a handy little tool for spinning up a local web server when you don’t all the features of something like MAMP.
Okay, I knew about the Python shortcut—I mentioned it in Going Offline—but I had no idea it was so easy to do the same thing for PHP. This is a bit of a revelation for me!
Once in the desired directory, run:
php -S localhost:2222
Now you can go to “localhost:2222” in your browser, and if you have an index.html or .php file in your root directory, you’re in business.
Well, I guess it’s time to change all my locally-hosted sites from .dev
domains to .test
. Thanks, Google.
This looks like a useful tool, not just for testing locally-hosted sites (say, at a device lab), but also for making locally-hosted sites run on HTTPS so you can test service workers.
An alternative to showoff.io for sharing your locally-hosted sites.
A handy little applescript that takes care of the automation of creating localhost sites on the mac.
This could be a handy little service for sharing locally-hosted sites.