pave - Command line tools for Concrete5 websites
Authors: Jamon Holmgren (@jamonholmgren), Ryan Linton (@ryanlntn)
Provides a set of command line tools for setting up and developing Concrete5 websites.
Requirements: Designed for Ruby 2.0+ running on OS X Mavericks.
Installation
$ gem install pave
Usage
Create a new Concrete5 website
$ pave new mywebsite
This:
- Downloads Concrete 5.6.2.1 (once) into
~/.pave - Unzips it into
mywebsite - Removes extra folders and sets up folder permissions
- Adds a
.gitignoreand.keeps - Attempts to create a virtual host
mywebsite.site
Deployments
$ pave deploy:setup
This sets up a Git-based deployment script to the remote server and deploys an initial version. SSH access is required.
$ pave deploy
Deploys the site using git.
Database
$ pave db:create mydatabase
Creates a local MySQL database called mydatabase
$ pave db:push
TODO: Copies the local Concrete5 database to the remote database. Useful for deploying to staging sites.
$ pave db:pull
TODO: Copies the remote Concrete5 database into the local database. Useful for obtaining production data for testing.
$ pave db:dump
Creates a database dump file and places it in .db/YYYY-MM-DD-database.sql.gz.
Virtual host setup
$ pave vh:create myhost.site
Sets up an Apache virtual host in the current directory on myhost.site.
$ pave vh:remove myhost.site
Removes myhost.site virtual host.
$ pave vh:backup
Backs up your hosts file and vhost file.
$ pave vh:restore
Restores your previously backed up virtual host file.
$ pave vh:restart
Restarts Apache.
Help
$ pave help
Outputs common tasks that pave can do.
Updating
$ pave update
Contributing
- Create an issue explaining what you’d like to do and get feedback
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Copyright (c) 2013 Jamon Holmgren
Released under the MIT license.