sam-it / develop
This package is abandoned and no longer maintained.
No replacement package was suggested.
Homestead alternative
dev-master
2016-10-20 11:28 UTC
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/bin
is 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.json
exists it will use theroot
key. - If a file named
index.php
exists in project root it will use that. - If a file named
application/index.php
exists, the root will be set toapplication
(yii1). - If a file named
public/index.php
exists the root will be set topublic
. - If none of those are found it will recursively iterate directories and find all
index.php
files. After that it sorts them based on abscence or presence of the wordpublic
in 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)