Zoop Create

Introduction to the Zoop Create script

We are currently working on a new addition to Zoop, a script that will create a new project for you and certain elements of that project. It is meant to be run from a CLI.

Basic Usage

php zoop_create.php method params

Possible Methods

  • project (name)
  • zone (name)
  • config (name)

Examples

Paths assumed, please replace with your own locations.

Creating a new zone with zoop_create

$ cd ~/public_html
$ php ../zoop/zoop_create.php project project_name

Creating a new zone with zoop_create

$ cd ~/public_html/project_name
$ php ../zoop/zoop_create.php zone zone_name

Creating a new configuration file using zoop_create

$ cd ~/public_html/project_name
$ php ../zoop/zoop_create.php config component_name

Shell Script

Another smart idea is to create a quick script and place it in your /usr/local/bin or ~/bin (make sure it is in your path) that is a wrapper for zoop_create. This will enable you to type $ zoopcreate project foo regardless of the path of the zoop_create.php file.

This script would look like...

#!/bin/bash 
php /path/to/zoop/zoop_create.php "$@"

make sure the script you create is executable with a nice chmod u+x filename