mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
81fd548876
commit
4eb361646a
2 changed files with 7 additions and 5 deletions
|
@ -22,11 +22,9 @@ class NodeJsInstaller
|
|||
{
|
||||
$commands = [];
|
||||
$commands[] = 'apt-get install -y npm';
|
||||
foreach ($this->nodejsVersions as $nodejsVersion) {
|
||||
$commands[] = 'curl -sL https://deb.nodesource.com/setup_'.$nodejsVersion.'.x -o /tmp/nodesource'.$nodejsVersion.'_setup.sh';
|
||||
$commands[] = 'sudo bash /tmp/nodesource'.$nodejsVersion.'_setup.sh';
|
||||
}
|
||||
$commands[] = 'sudo apt-get install -y install nodejs';
|
||||
$commands[] = 'curl -sL https://deb.nodesource.com/setup_20.x -o /tmp/nodesource_setup.sh';
|
||||
$commands[] = 'bash /tmp/nodesource_setup.sh';
|
||||
$commands[] = 'apt-get install nodejs -y';
|
||||
|
||||
// Install Apache Passenger
|
||||
$commands[] = 'curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null';
|
||||
|
|
|
@ -48,6 +48,10 @@ class HostingSubscriptionWithNodeJSCreateTest extends ActionTestCase
|
|||
//
|
||||
// Make Apache+PHP Application Server with all supported php versions and modules
|
||||
$installLogFilePath = storage_path('install-apache-nodejs-log-unit-test.txt');
|
||||
if (is_file($installLogFilePath)) {
|
||||
unlink($installLogFilePath);
|
||||
}
|
||||
|
||||
$phpInstaller = new NodeJsInstaller();
|
||||
$phpInstaller->setNodeJsVersions(array_keys(SupportedApplicationTypes::getNodeJsVersions()));
|
||||
$phpInstaller->setLogFilePath($installLogFilePath);
|
||||
|
|
Loading…
Reference in a new issue