A deployment bundle for Divine.dotfiles
The deployment bundle macos-local-server
is under development.
A deployment bundle for Divine.dotfiles
Divine bundle 'macos-local-server' sequentially installs (and removes if asked) httpd
('Apache server'), php
, mariadb
(read 'MySQL'), dnsmasq
, and some configuration to make your Mac into a local web-development server.
With some caveats, it follows instructions in this article.
After installing this deployment, you will be able to access your site at /sites/my-site/index.html
by visiting URL http://my-site.test
.
To customize |
Install via any Terminal.
Warning
|
Be careful with this deployment, if you happen to already have any of its parts installed. |
Install both framework & this deployment in one fell swoop (it’s fully removable):
bash -c "TMP=\$(mktemp); URL=https:\
//raw.github.com/divine-dotfiles/divine-dotfiles/master/lib/install/install.sh\
; if curl --version &>/dev/null; then curl -fsSL \$URL >\$TMP; elif wget --ver\
sion &>/dev/null; then wget -qO \$TMP \$URL; else printf >&2 \"\n==> Error: fa\
iled to detect neither curl nor wget\n\"; rm -f \$TMP; exit 1; fi || { printf \
>&2 \"\n==> Error: failed to download installation script\n\"; rm -f \$TMP; ex\
it 2; }; chmod +x \$TMP && \$TMP \"\$@\"; RC=\$?; rm -f \$TMP; ((RC)) && exit \
3 || exit 0" bash --yes \
&& ~/.divine/intervene.sh attach macos-local-server --yes \
&& ~/.divine/intervene.sh install --yes
Afterward, if you don’t like it, here is the 'undo' command (removes/restores everything):
~/.divine/intervene.sh remove --yes \
&& ~/.divine/intervene.sh detach macos-local-server --yes \
&& bash -c "TMP=\$(mktemp); URL=https://raw.\
github.com/divine-dotfiles/divine-dotfiles/master/lib/uninstall/uninstall.sh; \
if curl --version &>/dev/null; then curl -fsSL \$URL >\$TMP; elif wget --versi\
on &>/dev/null; then wget -qO \$TMP \$URL; else printf >&2 \"\n==> Error: fail\
ed to detect neither curl nor wget\n\"; rm -f \$TMP; exit 1; fi || { printf >&\
2 \"\n==> Error: failed to download uninstallation script\n\"; rm -f \$TMP; ex\
it 2; }; chmod +x \$TMP && \$TMP \"\$@\"; RC=\$?; rm -f \$TMP; ((RC)) && exit \
3 || exit 0" bash --yes