1.1.0 • Published 5 years ago
gwst v1.1.0
Good Work Server Tool
This tool automates some of the setup around our hosting platforms. It currently supports Serverpilot for staging and Cloudways for production.
Installation
npm install -g gwst
Configure
Run gwst config
to be guided through the process of gathering the required API keys etc.
Features
Staging (Harry)
- Create a site/app
- Set the app name (defaults to current directory name)
- Sets the runtime to PHP 7.3
- Sets the up the
.harry.gw-staging.com
subdomain
- Create a DB
- Generates a password (we'll spit this out to a staging .env in a future version)
- Creates the database (default to current directory name)
Production
- Add SSH keys
- Grabs a list of all servers
- Checks if the chosen server already has keys and allows you to remove them
- Presents a list of all GoodWork users
- Selected users get their SSH key grabed from GitHub http://github.com/chrisrowe.keys and added to the server
- Update webroot
- Grabs a list of all servers
- Grabs a list of apps on chosen server
- Asks for webroot (defaults to web from our Craft 3 start)
- Updates the webroot