Skip to content

Instantly share code, notes, and snippets.

View joelconty's full-sized avatar

joelconty joelconty

View GitHub Profile
@joelconty
joelconty / quick_laravel_dev_site.sh
Last active June 18, 2024 01:24
Quick Dev Site in Laravel
#!/usr/bin/env bash
#This script is intended as a quick laravel development website generator.
#It will ask you for a domain name to use, and it will generate and configure
#several things for you, like a local website that works on a fictitious domain name
#using https.
#
#For example, if you enter mygreatwebsite.lh, you will end up with a local laravel
#website working on https://www.mygreatwebsite.lh
@joelconty
joelconty / fix.sh
Last active June 15, 2024 18:28
This script fixes permissions and ownership of your laravel files. Save it on the root of your project, make it executable and edit only the two lines indicated at the beginning of the script to set your username and the name of the group used by your web server (usually www-data). Then just run with sudo ( sudo ./fix.sh ) and start coding!
#!/usr/bin/env bash
#Configure these two variables
MYUSER="joel"
APACHEGROUP="www-data"
#you don't need to edit anything below.
echo "Setting variables..."