Skip to content

Instantly share code, notes, and snippets.

@fivemini
Created November 29, 2015 15:25
Show Gist options
  • Save fivemini/73e920f4b86f88ca0d31 to your computer and use it in GitHub Desktop.
Save fivemini/73e920f4b86f88ca0d31 to your computer and use it in GitHub Desktop.
sudo pip install --upgrade awscli
sudo pip install --upgrade awsebcli
aws elasticbeanstalk list-available-solution-stacks | jq .SolutionStacks[]
git clone git@github.com:spray/spray-template.git
cd spray-template/
$ git diff --no-prefix
diff --git project/plugins.sbt project/plugins.sbt
index 2a01432..f249871 100644
--- project/plugins.sbt
+++ project/plugins.sbt
@@ -1 +1,2 @@
addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")
+addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
$
sbt assembly
java -jar target/scala-2.11/spray-template-assembly-0.1.jar
cd
mkdir eb-java-spray
cd eb-java-spray/
eb init
eb --profile user-001 init
eb init --profile user-001
cp ~/spray-template/target/scala-2.11/spray-template-assembly-0.1.jar .
eb create
mkdir -p .ebextensions/nginx/conf.d/elasticbeanstalk
touch .ebextensions/nginx/conf.d/elasticbeanstalk/00_application.conf
jar uvf spray-template-assembly-0.1.jar .ebextensions
jar tvf spray-template-assembly-0.1.jar | grep ebextensions
eb deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment