&&
cd play/framework &&
ant
&&
cd ..
&&
./play new myApp
&&
testApp
&&
./play run myApp/
In myApp/confing change the port to 9999 (default it 9000)
http://www.playframework.org/documentation/1.2.3/ide
Play and scala
http://www.jamesward.com/2011/10/19/running-play-framework-scala-apps-on-heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ioannis-kolovos:hello ioannis$ heroku keys | |
=== 2 keys for yannis.kolovos@gmail.com | |
ssh-rsa AAAAB3NzaC...dXgcLhNw== yannis.kolovos@gmail.com | |
ssh-rsa AAAAB3NzaC...eI0zlbmQ== yannis.kolovos@gmail.com | |
ioannis-kolovos:hello ioannis$ git status | |
# On branch master | |
# Untracked files: | |
# (use "git add ..." to include in what will be committed) | |
# | |
# .classpath | |
# .project | |
# .settings/ | |
# build.xml | |
# eclipse/ | |
# test-result/ | |
# tmp/ | |
nothing added to commit but untracked files present (use "git add" to track) | |
ioannis-kolovos:hello ioannis$ git add . | |
ioannis-kolovos:hello ioannis$ git push heroku master | |
Counting objects: 31, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (25/25), done. | |
Writing objects: 100% (31/31), 38.88 KiB, done. | |
Total 31 (delta 1), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Play! app detected | |
-----> Installing Play!..... done | |
-----> Installing ivysettings.xml..... done | |
-----> Building Play! application... | |
~ _ _ | |
~ _ __ | | __ _ _ _| | | |
~ | '_ \| |/ _' | || |_| | |
~ | __/|_|\____|\__ (_) | |
~ |_| |__/ | |
~ | |
~ play! 1.2.3, http://www.playframework.org | |
~ | |
1.2.3 | |
Building Play! application at directory ./ | |
Resolving dependencies: .play/play dependencies ./ --forceCopy --silent -Duser.home=/tmp/build_2a16c95ct9pxx 2>&1 | |
~ Resolving dependencies using /tmp/build_2a16c95ct9pxx/conf/dependencies.yml, | |
~ | |
:: loading settings :: file = /tmp/build_2a16c95ct9pxx/.ivy2/ivysettings.xml | |
~ | |
~ No dependencies to install | |
~ | |
~ Done! | |
~ | |
Precompiling: .play/play precompile ./ --silent 2>&1 | |
Listening for transport dt_socket at address: 8000 | |
05:47:52,430 INFO ~ Starting /tmp/build_2a16c95ct9pxx | |
05:47:53,068 INFO ~ Precompiling ... | |
05:47:57,090 INFO ~ Done. | |
-----> No Procfile found. Will use the following default process: | |
play run --http.port=$PORT $PLAY_OPTS | |
-----> Discovering process types | |
Procfile declares types -> (none) | |
Default types for Play! -> web | |
-----> Compiled slug size is 26.2MB | |
-----> Launching... done, v5 | |
http://blazing-sunset-9132.herokuapp.com deployed to Heroku | |
To git@heroku.com:blazing-sunset-9132.git | |
* [new branch] master -> master | |
ioannis-kolovos:hello ioannis$ heroku open |
--> http://blazing-sunset-9132.herokuapp.com/application/sayhello?myName=say+hello
No comments:
Post a Comment