Automate Apache virtual host creation on Linux.
angela 3cb86546cd Remove antiquated line | 5 anos atrás | |
---|---|---|
debian | 5 anos atrás | |
LICENSE | 6 anos atrás | |
README.md | 5 anos atrás | |
devdom.deb | 5 anos atrás | |
git.sh | 6 anos atrás |
Automate Apache virtual host creation on Linux, with Devdom.
Devdom is a command-line tool that was inspired by the simplicity of Valet on Mac.
I wanted to bring the same functionality to my local development environment on Linux, without actually having to bring in any additional components like dnsmasq -- so it is in no way a replacement for the Valet Linux Project.
The "beta" state is what I originally sought to solve while writing it:
Eventually (time permitting.. which is limited as of late) I'd like to add more flexibility to the overall script, so those in production environments without access to automated management tools could utilize it. In it's current state, I totally do not recommend using it on boxes that serve content to the outside world. (It has not been tested for production environments.)
Devdom assumes a few things about your environment:
Instead of copying a bunch of existing conf files or going the lazy route and having all of your domains run under https://localhost/devsite1
and https://localhost/devsite2
- you can create custom top-level domains on the fly and have them instantly accessible.
https://devsite1.test
is way better than https://localhost/devsite1
and is easier to keep organized when jumping from domain to domain.
Create a domain:
devdom domain mysite.test
/etc/apache2/sites-available
a2ensite mysite
/etc/hosts
so the domain is accessible as a TLDUpdated /etc/hosts with a new Adblocking list?
devdom hosts
That's it! Seconds worth of commands vs several minutes worth of running cp & sed commands!
Debian or Ubuntu-based LAMP distros; RHEL-based distros are not compatible.
Git install:
git clone https://github.com/angela-d/devdom.git \
cd devdom && sudo apt install ./devdom.deb
apt update && apt install ./devdom.deb
(OPTIONAL) If you prefer to use mysql over mariadb:
apt update && apt install ./devdom.deb --no-install-recommends
apt remove devdom --purge
That's all there is to it. Devdom will provide prompts on what it's doing & will let you know when it needs your intervention.
Report a bug on the issues tracker