Larahost is the extended plugin written over the laravel/installer
plugin to set up the nginx virtualhost for the application automatically while installing.
It requires nginx to be installed in the system.
First, download the Larahost installer using Composer:
`
shell
composer global require ankitjain28may/larahost
`
Download the nginx configuration and put it in the nginx virtualhosts folder according to OS. Make necessary changes in the file related to port and PHP FastCGI configuration.
For example- It is /usr/local/etc/nginx/servers/
for Mac.
`
shell
cd /usr/local/etc/nginx/servers/
curl https://raw.githubusercontent.com/ankitjain28may/larahost/master/nginx_conf/example.conf -O
`
Export these variables in $PATH.
`
shell
export NGINX_EXAMPLE_FILE='/usr/local/etc/nginx/servers/example.conf'
export NGINX_DEST='/usr/local/etc/nginx/servers/'
`
Once everything is setup, the larahost
new command will create a fresh Laravel installation in the directory you specify.
`
shell
larahost new blog
`
## Contribute
>Feel free to contribute
>Copyright (c) 2019 Ankit Jain - Released under the MIT License
Classes of Ankit Jain | > | Laravel Nginx Configuration | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Systems administration | System configuration and management | View top rated classes |
Libraries | Frameworks and libraries of cooperating classes | View top rated classes |
Console | Command line and console utilities | View top rated classes |
Project Management | Tools to assist project management | View top rated classes |
Configuration | Configuration formats parsing and generation | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
nginx_conf (1 file) | ||||
src (1 file) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
larahost | Example | Example script | ||
LICENSE.md | Lic. | License text | ||
nginx.sh | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Download all files: larahost.tar.gz larahost.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|