Starter Craft CMS 3 setup using Vagrant for local development. This setup uses a special port number to allow testing the site without modifying a hosts file. The site should be accessible to other devices on the same network.
Initial site url is http://localhost:8378. Or using the local computer name like http://COMPUTER_NAME:8378. Port number is adjustable modified in the Vagrantfile.
Vagrant settings support macOS and Windows. Virtual machine is running Ubuntu 16 with PHP 7.0.
Installation includes Xdebug for PHP debugging and Visual Studio Code launch.json.
- Clone/download repository
- Change the main folder name to your project name
- If desired change port number in Vagrantfile
- Run
vagrant up
- Go to http://localhost:8378/admin to finalize Craft installation
- Create first admin account
- Enter site details, leaving Base URL = @web
*Note: Before starting an actual project the .gitignore and .git files will need to be replaced.
2018-03-30
- Added PHP Intl module
- Changed PHP memory limit to 256MB
- Changed Craft setup to automatically apply database settings
- Removed temporary index file as Craft now includes one
2018-03-27
- Added Xdebug
- Added Visual Studio Code launch.json for debugging with Xdebug
- Removed custom globals URI_PORT and SITE_URL by using @web alias for siteUrl