- Document everything (including service providers) in
hosting.yml
- Default Apache virtualhost + PHP FPM pool + SSL certificate
- PHP extensions and directives (declared also in
php-env-check.php
) - Apache config:
Include public/.htaccess
.env
variables- Private repository credentials
composer config --global http-basic.nova.laravel.com "$NOVA_LICENSE_ACCOUNT" "$NOVA_LICENSE_KEY"
- Database seeding and/or import
- Media import
- CD testing
- Per application CLI configuration
php -c /home/user/website/php-cli.ini
- Set up queues
- Cron jobs (sitemap, queue checks)
- Outbound email: Laravel SwiftMailer or
mail()
and local queuing MTA - Test email:
Mail::raw('Visit our application '.config('app.url'),function($msg){$msg->to('admin@szepe.net')->subject('Greetings from '.config('app.env'));});
Notification::route('mail','admin@szepe.net')->notify(new WelcomeNotification());
- artisan queue:show-failed-payload ID
- artisan queue:show-failed-exception ID
- Log reporting (
bin/laravel-report.sh
) - Periodic file check (
bin/tripwire-fake.sh
) - Monitor front page and ping API endpoint with Monit
- Register to webmaster tools
- Think of other environments (development/staging/beta/demo)
Adding all languages to your server's locale archive may not be desirable.
_
is an alias for gettext
.
# ls /usr/share/i18n/locales/
for LOCALE in en_US hu_HU; do
echo "${LOCALE} ..."
localedef --replace -f UTF-8 -i "$LOCALE" "/home/USER/website/locales/${LOCALE}.utf-8"
done
utf-8
with small letters.
LOCPATH="/home/USER/website/locales" php -r 'var_dump(setlocale(LC_ALL, "hu_HU.utf-8"));'
Set LOCPATH
(libc variable) in your PHP-FPM pool configuration.
env[LOCPATH] = "/home/USER/website/locales"