Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 46 | All time: 10,782 This week: 455 |
Version | License | PHP version | Categories | |||
larahost 1.0 | MIT/X Consortium ... | 5.5 | PHP 5, Systems administration, Libraries, C..., P..., C... |
Description | Author | |||||||||||||||||||||||
This package can create a Virtualhost in nginx for a Laravel site. Innovation Award
|
|
#!/usr/bin/env php |
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:
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.
cd /usr/local/etc/nginx/servers/
curl https://raw.githubusercontent.com/ankitjain28may/larahost/master/nginx_conf/example.conf -O
Export these variables in $PATH.
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.
larahost new blog
## Contribute
>Feel free to contribute
>Copyright (c) 2019 Ankit Jain - Released under the MIT License
Files (9) |
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 |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.