PHP Deployment Scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neatoDeploy/deploy_files/deploy_test1.php

25 lines
711 B

<?php
Configure::set('display', true); // Show Output
Configure::set('logfile', false); // Save to log folder
Configure::set('syslog', false);
force_root();
doCommand('apache::ht_password', '.htpasswd', 'johnny', 'shhhh');
$status = doCommand('php::query_module', 'gd', '8.2', 'apache2');
echo ($status == 0) ? 'PHP found module gd' : 'gd not found as module for PHP';
echo ".\r\n";
$n = doCommand('npm::is_package_installed_globally', 'gulp-cli');
echo ($n == 0) ? 'Found npm package Gulp-cli' : 'npm package gulp-cli not found';
echo ".\r\n";
print_r(doCommand('ufw::status'));
$ok = useMe('wget');
if ($ok !== false) {
//do_command('wget::download', 'test.html', 'http://127.0.0.1/index.php');
}