https://github.com/ankitjain28may/larahost
https://github.com/ankitjain28may/larahost
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ankitjain28may/larahost
- Owner: ankitjain28may
- License: mit
- Created: 2019-07-23T08:17:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T10:13:48.000Z (over 4 years ago)
- Last Synced: 2024-04-14T06:10:29.489Z (about 1 year ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Larahost
[](https://travis-ci.org/ankitjain28may/larahost)
[](https://packagist.org/packages/ankitjain28may/larahost)
[](https://packagist.org/packages/ankitjain28may/larahost)Larahost is the extended plugin written over the `laravel/installer` plugin to set up the nginx virtualhost for the application automatically while installing.
## Installation
It requires nginx to be installed in the system.
1. First, download the Larahost installer using Composer:
```shell
composer global require ankitjain28may/larahost
```2. 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
```3. 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/'
```4. 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
## License
>Copyright (c) 2019 Ankit Jain - Released under the MIT License