Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts
file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
<?php | |
require_once __dir__.'/vendor/autoload.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
/** | |
* Simple skeleton for Silex | |
* | |
* Run in PHP >=5.4: $ php -S localhost:8080 -t web web/index.php |
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts
file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
setenforce 0 | |
sed -i 's/SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config | |
sed -i 's/ONBOOT=.*$/ONBOOT=yes/' /etc/sysconfig/network-scripts/ifcfg-eth0 | |
yum install git vim gcc make kernel-devel-`uname -r` kernel-headers | |
iptables -F | |
chkconfig iptables off | |
mkdir -p /root/.ssh | |
chmod og-rwx /root/.ssh |
FROM ubuntu | |
MAINTAINER Victor Bocharsky <[email protected]> | |
RUN apt-get update | |
RUN apt-get install -y nginx php5 php5-fpm php5-intl php5-mysql php5-xdebug | |
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf | |
RUN sed -i -e "s/;\?daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.conf | |
# Nginx config | |
RUN rm /etc/nginx/sites-enabled/default |
In 5 minutes, you’ll have a brand new clean Statamic site, with Tailwind CSS and PurgeCSS configured.
It assumes that you work on a Mac, you put your site in ~/sites and you use Laravel Valet.
All the credit go to Jack McDade and philipboomy, from whom I stole and adapt the build scripts and the PurgeCSS config, because I have really absolutely no idea what I am doing with all this Terminal Black Magic ™; this is only a detailed write up of the process.
You'll need Yarn and Node. You can install them both in one command via Brew: brew install yarn