Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netr/bash_localdev_laravel_setup_tool
Local development bash tool for laravel to help generate nginx site files, create self signed certs with mkcert and add domain link to /etc hosts
https://github.com/netr/bash_localdev_laravel_setup_tool
bash laravel nginx php php73 php73-fpm ssl
Last synced: 5 days ago
JSON representation
Local development bash tool for laravel to help generate nginx site files, create self signed certs with mkcert and add domain link to /etc hosts
- Host: GitHub
- URL: https://github.com/netr/bash_localdev_laravel_setup_tool
- Owner: netr
- Created: 2019-10-03T23:39:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T00:49:39.000Z (over 4 years ago)
- Last Synced: 2025-01-18T19:07:09.884Z (6 days ago)
- Topics: bash, laravel, nginx, php, php73, php73-fpm, ssl
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Local Development Helper for Laravel using Nginx / PHP 7.3 / Self Signed Certificates
---
### Required
- https://github.com/FiloSottile/mkcert :: Awesome easy to use go package to generate certs and sign them to your local store.---
### Quick Information
Found myself doing this way too often, so I decided to learn bash and setup a script to automate it.
Fairly easy to use, just ` ./create.sh `
Next, select the type of nginx file you are trying to create.
- SSL (doesn't generate a cert and assumes /etc/ssl/domain.key)
- SSLGen (creates a cert with mkcert and moves to /etc/ssl)
- HTTP (doesn't use any ssl)It will then prompt you for your development url (i.e. project.test)
Then your folder name of your /var/www/html (i.e. project for /var/www/html/project)
Ties in well with this bashrc function
```
lnew() {
laravel new $1
cd $1
composer require laravel/ui --dev
php artisan ui vue --auth
composer require laravel/telescope --dev
composer require --dev barryvdh/laravel-ide-helper
php artisan telescope:install
git init
git add .
git commit -m "Install Laravel"
npm install
npm run dev
}./create.sh
```