Skip to content

Commit

Permalink
Update readme on compute sendgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
Shun Fan committed Apr 15, 2016
1 parent 165af88 commit 3275972
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions compute/sendgrid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ For more information about SendGrid, see their

[sample-docs]: https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid

## Setup
## Running on Compute Engine

Before you can run or deploy the sample, you will need to do the following:
To run the sample, you will need to do the following:

1. [Create a SendGrid Account](http://sendgrid.com/partner/google). As of
September 2015, Google users start with 25,000 free emails per month.
1. Create a compute instance on the Google Cloud Platform Developer's Console
1. SSH into that instance. If SSHing from the Developer's Console, switch to user managed
if necessary.
1. SSH into the instance you created
1. Update packages and install required packages
sudo apt-get update && sudo apt-get install git-core openjdk-8-jdk maven
1. Clone the repo
Expand All @@ -32,6 +31,6 @@ Before you can run or deploy the sample, you will need to do the following:
chmod +x compute-sendgrid-1.0-SNAPSHOT-jar-with-dependencies.jar
1. Make sure that openjdk 8 is the selected java version
sudo update-alternatives --config java
1. Execute the jar file and send an email
1. Execute the jar file and send an email (make sure you are in the target folder)
java -jar compute-sendgrid-1.0-SNAPSHOT-jar-with-dependencies.jar

0 comments on commit 3275972

Please sign in to comment.