PHP Classes

File: larahost

Recommend this page to a friend!
  Classes of Ankit Jain   Laravel Nginx Configuration   larahost   Download  
File: larahost
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Nginx Configuration
Create a Virtualhost in nginx for a Laravel site
Author: By
Last change: Added enhancements to the update /etc/hosts entry
Releasing v3.0.0
Releasing v2.0.0
Date: 17 days ago
Size: 388 bytes
 

 

Contents

Class file image Download
#!/usr/bin/env php
<?php

if (file_exists(__DIR__.'/../../autoload.php')) {
    require
__DIR__.'/../../autoload.php';
} else {
    require
__DIR__.'/vendor/autoload.php';
}

$commands = [
   
__DIR__.'/nginx.sh',
];
$app = new Symfony\Component\Console\Application('Larahost Laravel Installer', 'v3.1.0');
$app->add(new Ankitjain28may\Larahost\LarahostCommand($commands));

$app->run();