Skip to content

rodrigomantoan/devset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devset

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).

Installation

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).

Usage

Creating a new project

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).

Removing a project

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages