Last active
August 29, 2015 14:17
-
-
Save yukinagae/d2b283eb516dcefcd4ad to your computer and use it in GitHub Desktop.
Scala + PlayFramework on Heroku + MongoDB ref: http://qiita.com/yukinagae/items/fa75ba9cd2ad75dc63e1
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
| c:\> md c:\data\db |
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
| c:\> C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe |
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
| heroku login | |
| heroku create {appname} |
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
| git push heroku master |
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
| heroku open |
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
| https://{appname}.herokuapp.com/ |
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
| heroku logs |
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
| heroku addons:add mongolab |
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
| web: target/universal/stage/bin/{appname} -Dhttp.port=${PORT} -Dmongodb.uri=$MONGOLAB_URI |
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
| web: target/universal/stage/bin/play-mongo-knockout -Dhttp.port=${PORT} -Dmongodb.uri=$MONGOLAB_URI |
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
| git add Procfile | |
| git commit -m "add Procfile" | |
| git push heroku master | |
| heroku open |
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
| 2015-03-27T08:36:36.181+0900 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files | |
| 2015-03-27T08:36:36.190+0900 I JOURNAL [initandlisten] journal dir=C:\data\db\journal | |
| 2015-03-27T08:36:36.191+0900 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed | |
| 2015-03-27T08:36:36.208+0900 I JOURNAL [durability] Durability thread started | |
| 2015-03-27T08:36:36.209+0900 I CONTROL [initandlisten] MongoDB starting : pid=8008 port=27017 dbpath=C:\data\db\ 64-bit host=ws-nagae-PC | |
| 2015-03-27T08:36:36.209+0900 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2 | |
| 2015-03-27T08:36:36.212+0900 I CONTROL [initandlisten] db version v3.0.1 | |
| 2015-03-27T08:36:36.216+0900 I CONTROL [initandlisten] git version: 534b5a3f9d10f00cd27737fbcd951032248b5952 | |
| 2015-03-27T08:36:36.219+0900 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1j-fips 15 Oct 2014 | |
| 2015-03-27T08:36:36.219+0900 I JOURNAL [journal writer] Journal writer thread started | |
| 2015-03-27T08:36:36.223+0900 I CONTROL [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49 | |
| 2015-03-27T08:36:36.229+0900 I CONTROL [initandlisten] allocator: system | |
| 2015-03-27T08:36:36.232+0900 I CONTROL [initandlisten] options: {} | |
| 2015-03-27T08:36:36.247+0900 I NETWORK [initandlisten] waiting for connections on port 27017 | |
| 2015-03-27T08:36:36.707+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50109 #1 (1 connection now open) | |
| 2015-03-27T08:36:36.708+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50110 #2 (2 connections now open) | |
| 2015-03-27T08:36:36.708+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50111 #3 (3 connections now open) | |
| 2015-03-27T08:36:36.712+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50113 #4 (4 connections now open) | |
| 2015-03-27T08:36:36.715+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50114 #5 (5 connections now open) | |
| 2015-03-27T08:36:36.718+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50115 #6 (6 connections now open) | |
| 2015-03-27T08:36:36.722+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50116 #7 (7 connections now open) | |
| 2015-03-27T08:36:36.725+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50117 #8 (8 connections now open) | |
| 2015-03-27T08:36:36.727+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50118 #9 (9 connections now open) | |
| 2015-03-27T08:36:36.730+0900 I NETWORK [initandlisten] connection accepted from 127.0.0.1:50119 #10 (10 connections now open) |
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
| cd [プロジェクトのルートディレクトリ] |
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
| activator.bat |
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
| ./activator |
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
| [play-mongo-knockout] $ run |
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
| [play-mongo-knockout] $ run | |
| --- (Running the application from SBT, auto-reloading is enabled) --- | |
| [info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000 | |
| (Server started, use Ctrl+D to stop and go back to the console...) |
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
| cd [プロジェクトのルートディレクトリ] |
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
| git init | |
| git add . | |
| git commit -m "init" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment