Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd path/to/your/app
- php -S localhost:8000
- php -S 0.0.0.0:<PORT_NUMBER>
- <?php
- // router.php
- if (preg_match('/.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) {
- return false; // serve the requested resource as-is.
- } else {
- echo "<p>Welcome to PHP</p>";
- }
- ?>
- php -S 0.0.0.0:8000 router.php
- Welcome to PHP
- # Get the devilbox
- $ git clone https://github.com/cytopia/devilbox
- $ cd devilbox
- # Create docker-compose environment file
- $ cp env-example .env
- # Edit your configuration
- $ vim .env
- # Start all containers
- $ docker-compose up
Add Comment
Please, Sign In to add comment