npm run staging you need to have the
php command available and
PHPAutomailer available in the PHP load path. (i.e. in
contact.php gets filled with metadata by eleventy.
When deploying you need an
mail-config.ini file in the same directory as
contact.php providing the following:
(beware the quoted strings)
The environment variable
DOMAIN is used when building for production builds.
Composer is needed for mail sending to work.
sshaccess to your web host
composeris installed and available as the command
composer install composer update
This repo is optimized to be used on shared hosting with no access to main configuration files for the web server.
Therefore it uses
.htaccess files to override / set new Apache rules.
If you can, you should set all rules found in this repo on the main
httpd.conf file of your web server.
Further reading: Don't Use .htaccess Unless You Must