sam-it / develop
Homestead alternative
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/sam-it/develop
Requires
- fxp/composer-asset-plugin: ^1.1
- knplabs/github-api: ^1.5
- potsky/pimp-my-log: ^1.7
- ptrofimov/beanstalk_console: ^1.7
- slim/slim: ^3.1
- symfony/console: ^3.0
This package is auto-updated.
Last update: 2022-02-01 12:56:41 UTC
README
Homestead Alternative
Installation
- Make sure you have installed composer. And that ~/.composer/vendor/binis in your path.
- Go into a terminal and type composer global require sam-it/develop
- Configure DNSMasq, on Ubuntu:
echo "address=/dev/192.168.37.2" > /etc/NetworkManager/dnsmasq.d/dev-tld"
echo "local=/dev/" >> /etc/NetworkManager/dnsmasq.d/dev-tld"
- Reload dnsmasq.
sudo systemctl stop NetworkManager
sudo pkill dnsmasq
sudo systemctl start NetworkManager
- Make sure all your projects are in /mnt/data/projects, or edit the VagrantFile.
- Start the VM by doing develop up
On boot each of your project will be assigned a domain name based on the name of the folder it is in, projects/testproject will be available at http://testproject.dev.
The system will try to find out the webroot directory of your project using several heuristics:
- If a file manifest.jsonexists it will use therootkey.
- If a file named index.phpexists in project root it will use that.
- If a file named application/index.phpexists, the root will be set toapplication(yii1).
- If a file named public/index.phpexists the root will be set topublic.
- If none of those are found it will recursively iterate directories and find all index.phpfiles. After that it sorts them based on abscence or presence of the wordpublicin the path. It then selects the folder for the firstindex.php.
Besides having all your projects available this repository will add a http://console.dev domain that offers some commonly used tools.
- PHPMyAdmin (https://www.phpmyadmin.net/)
- MailCatcher (http://mailcatcher.me/)
- Pimp-my-log (http://pimpmylog.com/)
- Beanstalk console (https://github.com/ptrofimov/beanstalk_console)