Skip to content

Instantly share code, notes, and snippets.

@Tolmark12
Created May 5, 2011 21:30
Show Gist options
  • Save Tolmark12/958004 to your computer and use it in GitHub Desktop.
Save Tolmark12/958004 to your computer and use it in GitHub Desktop.
terminal output
Delorum14s-MacBook:super-secret-project lyon$ pagoda launch stanley
+> Registering stanley
+> Deploying....
+> stanley created and deployed!
-----------------------------------------------
LIVE URL : http://stanley.pagodabox.com
ADMIN PANEL : http://dashboard.pagodabox.com
-----------------------------------------------
Delorum14s-MacBook:super-secret-project lyon$ pagoda app:list
APPS
//////////////////////////////////
- guides
- lyon
- site
- stanley
- union
Delorum14s-MacBook:super-secret-project lyon$ pagoda info
INFO - stanley
//////////////////////////////////
name : stanley
clone_url : [email protected]:lyondhill/super-secret-project.git
owner
username : lyon
email : [email protected]
collaborators
(none)
Delorum14s-MacBook:my_wordpress_blog lyon$ pagoda pair
+> Locating deployed app with matching git repo
** ERROR - MULTIPLE MATCHES FOUND :
**
** -> testapp
** -> jonathan
**
** You have more then one app that uses this repo.
** Please specify which app you would like to use
**
** ex: pagoda pair testapp
Delorum14s-MacBook:my_wordpress_blog lyon$ pagoda track lyon
+> Locating deployed app with matching git repo
+> Attempting to pair your repo with deployed app - foobar
+> Repo is now paired with "foobar"
Delorum14s-MacBook:my_wordpress_blog lyon$ pagoda deploy
+> deploying....
+> deployed
Delorum14s-MacBook:super-secret-project lyon$ pagoda help
Pagoda
NAME
pagoda -- command line utility for pagodabox.com
SYNOPSIS
pagoda [command] [-a -b -c -f -i -u -p]
DESCRIPTION
If no operands are given, we will attempt to pull data from the current
directory. If more than one operand is given, non-directory operands are
displayed first.
The following options are available:
COMMANDS
list # list your apps
deploy # Deploy your current state to pagoda
launch <name> # create (register) a new app
info # display info about an app
destroy # remove app
rollback # rollback app
tunnel:mysql # create a tunnel to your database on pagoda
PARAMETERS
---------------------------
GLOBAL :
---------------------------
-a <name> | --app=<name>
Set the application name (Only necessary when not in repo dir).
-u <username> | --username=<username>
When set, will not attempt to save your username. Also over-rides
any saved username.
-p <password> | --password=<password>
When set, will not attempt to save your password. Also over-rides
any saved password.
-f
Executes all commands without confirmation request.
---------------------------
DEPLOYING - pagoda deploy :
---------------------------
-b <branch> | --branch=<branch>
Specify the branch name. By default uses the branch
your local repo is on.
-c <commit> | --commit=<commit>
Specify the commit id. By default uses the commit Head is set to.
--latest
Will attempt to deploy to the latest commit on github rather than
your local repo's current commit.
---------------------------
TUNNELING - pagoda tunnel :
---------------------------
-t <type> | --type=<type>
Specify the tunnel type. (ex:mysql)
-n <instance> | --name=<instance>
Specify the instance you want to operate on used for database instance
EXAMPLES
launch an application on pagoda from inside the clone folder:
(must be done inside your repo folder)
pagoda launch <app name>
list your applications:
pagoda list
create tunnel to your database:
(must be inside your repo folder or specify app)
pagoda tunnel:mysql -a <app name> -i <database name>
destroy an application:
(must be inside your repo folder or specify app)
pagoda destroy
Delorum14s-MacBook:super-secret-project lyon$ pagoda tunnel:mysql
** ERROR :
** Please specify your app's name and database instance name
ex: pagoda tunnel --type=mysql --app=foo --dbname=bar
Delorum14s-MacBook:super-secret-project lyon$ pagoda tunnel:mysql -i laurice
+> Authenticating Username / Password
+> Authenticating App Ownership
+> Authenticating Database Ownership
+> Initiating SSL
+> Opening Tunnel
Tunnel Established! Accepting connections on :
-----------------------------------------------
HOST : 127.0.0.1 (or localhost)
PORT : 3307
USER : (found in pagodabox dashboard)
PASS : (found in pagodabox dashboard)
-----------------------------------------------
(note : ctrl-c To close this tunnel)
^C
Tunnel Closed.
-----------------------------------------------
Delorum14s-MacBook:super-secret-project lyon$ pagoda destroy
Are you totally completely sure you want to delete stanley forever and ever?
THIS CANNOT BE UNDONE! (y/n) n
Delorum14s-MacBook:super-secret-project lyon$ pagoda destroy -f
+> Destroying stanley
+> stanley has been successfully destroyed. RIP stanley.
Delorum14s-MacBook:super-secret-project lyon$
********************************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment