Skip to content

Commit

Permalink
Add a step to make sure user has an RSA SSH key.
Browse files Browse the repository at this point in the history
  • Loading branch information
vthunder committed Sep 19, 2013
1 parent ad5b5a3 commit 5ab5f72
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,34 @@ Want to try awsbox? There are a couple things you have to do:
**1.** Create an AWS account and put your `AWS_ID` and `AWS_SECRET` in corresponding
environment variables.

**2.** Add an `.awsbox.json` file to your project that specifies what processes to run
**2.** Generate an SSH RSA (not DSA) key with `ssh-keygen` if you don't already have one.

**3.** Add an `.awsbox.json` file to your project that specifies what processes to run

{
"processes": [ "server.js" ]
}

**3.** add awsbox to your package.json as a dev dependency
**4.** add awsbox to your package.json as a dev dependency

"devDependencies": {
"awsbox": "*"
}

You need to add this manually to `package.json` if you skipped the `--save-dev` argument in in step 0 above.

**4.** set up your server to bind localhost and defer to the environment for PORT
**5.** set up your server to bind localhost and defer to the environment for PORT

app.listen(process.env['PORT'] || 3000, '127.0.0.1');

**5.** Create a VM
**6.** Create a VM

$ node_modules/.bin/awsbox create -n myvm

**6.** Deploy your code
**7.** Deploy your code

$ git push myvm HEAD:master

**7.** Check out your handiwork!
**8.** Check out your handiwork!

Visit http://<my ip address> in your web browser.

0 comments on commit 5ab5f72

Please sign in to comment.