| Server IP : 164.138.27.172 / Your IP : 216.73.216.143 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/dev/internetstiftelsen/ |
Upload File : |
<?php
namespace Deployer;
require 'vendor/iis/deployer/src/recipe.php';
require __DIR__ . '/vendor/autoload.php';
( \Dotenv\Dotenv::createUnsafeImmutable( __DIR__ ) )->load();
set( 'application', getenv( 'APPLICATION_NAME' ) );
set( 'repository', getenv( 'REPOSITORY' ) );
set( 'slack_webhook', getenv( 'SLACK_WEBHOOK' ) );
// Shared files/dirs between deploys
set(
'shared_files',
[
'.env',
'www/.htaccess',
'www/google7f53f1303f112850.html',
'auth.json',
]
);
set(
'shared_dirs',
[
'www/app/uploads',
'www/docs',
'www/.well-known',
]
);
task(
'wp-admin:setup',
function () {
run( 'cp ' . get( 'deploy_path' ) . '/current/deploy/.htaccess ' . get( 'deploy_path' ) . '/current/www/wp/wp-admin/' );
run( 'cp ' . get( 'deploy_path' ) . '/current/deploy/wp-htaccess ' . get( 'deploy_path' ) . '/current/www/wp/.htaccess' );
}
);
task(
'reload:php-fpm',
function () {
$host = get( 'host' );
if ( 'ny' === $host ) {
return;
} else {
run( 'sudo /etc/init.d/php8.3-fpm reload' );
}
}
);
after( 'deploy', 'wp-admin:setup' );
after( 'deploy', 'reload:php-fpm' );
// Hosts
host( 'stage' )
->setHostname( getenv( 'DEPLOY_STAGE_IP' ) )
->setRemoteUser( 'iis' )
->setDeployPath( '/home/httpd/iis/{{application}}' )
->set( 'branch', 'develop' )
->set( 'host', 'stage' );
host( 'prod' )
->setHostname( getenv( 'DEPLOY_PROD_IP' ) )
->setRemoteUser( 'iis' )
->setDeployPath( '/home/httpd/iis/{{application}}' )
->set( 'branch', 'master' )
->set( 'host', 'prod' );