Skip to content

Instantly share code, notes, and snippets.

@geramirez
Created April 12, 2016 14:48
Show Gist options
  • Save geramirez/c63f58d5303a8c5ee2697a66871e3029 to your computer and use it in GitHub Desktop.
Save geramirez/c63f58d5303a8c5ee2697a66871e3029 to your computer and use it in GitHub Desktop.

General command line

Change a directory

cd NameofDirectory/NameofSubdirectory

List the files in the current directory

ls

Get the current location from home folder

pwd

Setting up Cloud.gov

https://docs.cloud.gov/getting-started/setup/

How to deploy angrytock

  1. Navigate to the angrytock directory using the command line

  2. If the angrytock directory does not exist on you computer you can clone it from github using.

git clone https://github.com/18F/angrytock.git
cd angrytock 
  1. Make sure you are logged in to Cloud.gov
cf apps
  1. If you're not logged in use the login commmand
cf login -a api.cloud.gov
  1. Navigate to the space containing angrytock in Cloud.gov
cf target -o 18f -s tock
  1. Deploy angrytock Make sure you are in the angrytock directory then:
cf push

Changing angrytock settings

  1. Look at your current angrytock settings
cf env angrytock
  1. Changing the master list
cf set-env angrytock MASTER_LIST "emails,emails,..."
  1. Restage the application
cf restage angrytock

looking at applications

cf apps 
cf app angrytock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment