A bash script created to set up local web environments. It automates the configuration of Nginx and PHP-FPM, creating a local domain (.test) to view these projects.
This project was created mostly to practice bash. If you want more robust solutions, I recommend DDEV, Valet Linux, or Laravel Herd (if you're on Mac/Windows).
Using curl:
sudo curl -sSL https://github.com/rodrigomantoan/devset/releases/latest/download/devset.sh -o /usr/local/bin/devset && sudo chmod +x /usr/local/bin/devset
Using wget:
sudo wget -q -O /usr/local/bin/devset https://github.com/rodrigomantoan/devset/releases/latest/download/devset.sh && sudo chmod +x /usr/local/bin/devset
Restart your terminal or run source ~/.bashrc
(or source ~/.zshrc
if you're using zsh).
To create a new project, use the following command:
devset create project_name --project_type
The --project_type
flag is optional and can be one of the following: wordpress
, laravel
, or statamic
.
If you don't provide a project type, Devset will assume it's a generic PHP project (you can define a public folder).
To remove a project, use the following command:
devset remove project_name
You will be prompted to confirm the removal of configurations and project files.
This project is licensed under the MIT License - see the LICENSE file for details.