Statamic meets Hetzner Cloud, Ploi and Deployer

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • action

    GitHub Action for Deployer (by deployphp)

  • Deployer

    The PHP deployment tool with support for popular frameworks out of the box

  • namespace Deployer; require 'contrib/npm.php'; // https://deployer.org/docs/7.x/contrib/npm import('recipe/statamic.php'); // https://deployer.org/docs/7.x/recipe/statamic set('application', 'My Statamic Site'); // The git repository which should be used set('repository', '[email protected]:mandrasch/my-statamic-site.git'); // Targets for deployment (SSH), // this will be called via 'ddev dep deploy production' host('production') ->set('remote_user', 'ploi') ->set('hostname', '162.55.187.201') ->set('deploy_path', '~/my-statamic-site.mandrasch.dev'); // Sharead and writable directories // (These will be kept on the server and will not be replaced on deployments) add('shared_dirs', [ 'content', 'storage' ]); add('writable_dirs', [ 'content', 'storage' ]); // Npm production build desc('Compile JS/SCSS via npm'); task('npm:production', function(){ run('cd {{release_path}} && npm ci && npm run production'); }); // We copied the following from Statamic recipe to know what's going on // (https://deployer.org/docs/7.x/recipe/statamic) /* * Main Deploy Script for Statamic, which * will overwrite the Laravel default. */ desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:vendors', 'artisan:storage:link', 'artisan:cache:clear', 'statamic:stache:clear', 'statamic:stache:warm', 'deploy:publish', ]); after('deploy:failed', 'deploy:unlock');

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts