IT Staff

Blog về chuyên ngành IT

Run Comy-master

leave a comment »

Simple URL Shortener using Xitrum (https://github.com/ngocdaothanh/xitrum) and MongoDB.

xavier@xavier:~/Code/workspace_scala/work/comy-master$ ps -ef |grep mongo
xavier   16738 14217  0 17:24 pts/5    00:00:00 grep mongo
xavier@xavier:~/Code/workspace_scala/work/comy-master$ sudo mongod -f /etc/mongodb.conf
all output going to: /var/log/mongodb/mongodb.log

xavier@xavier:~/Code/workspace_scala/work/xitrum-demos-master$ mongo
MongoDB shell version: 2.0.7
connecting to: test
> use comy
switched to db comy
>

xavier@xavier:~/Code/workspace_scala/work/comy-master$ sbt/sbt run
[info] Loading project definition from /home/xavier/Code/workspace_scala/work/comy-master/project
[info] Set current project to comy (in build file:/home/xavier/Code/workspace_scala/work/comy-master/)
[info] Compiling Templates in Template Directory: /home/xavier/Code/workspace_scala/work/comy-master/src/main/scalate
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Multiple main classes detected, select one to run:

 [1] comy.Boot
 [2] comy.GC

Enter number: 1

[info] Running comy.Boot
[INFO] Using configuration file at /home/xavier/Code/workspace_scala/work/comy-master/config/hazelcast_cluster_or_lite_member.xml
[INFO] Using configuration file at /home/xavier/Code/workspace_scala/work/comy-master/config/hazelcast_cluster_or_lite_member.xml
[INFO] Prefer IPv4 stack is true.
[INFO] Picked Address[192.168.1.172]:5701, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=5701], bind any local is true
[INFO] [192.168.1.172]:5701 [comy] Hazelcast Community Edition 2.5 (20130116) starting at Address[192.168.1.172]:5701
[INFO] [192.168.1.172]:5701 [comy] Copyright (C) 2008-2012 Hazelcast.com
[INFO] [192.168.1.172]:5701 [comy] Address[192.168.1.172]:5701 is STARTING
[INFO] [192.168.1.172]:5701 [comy]

Members [1] {
    Member [192.168.1.172]:5701 this
}

[INFO] [192.168.1.172]:5701 [comy] Address[192.168.1.172]:5701 is STARTED
[INFO] [192.168.1.172]:5701 [comy] Initializing cluster partition table first arrangement…
[INFO] Load file routes.cache/collect routes and action/page cache config from controllers…
[INFO] Routes:
GET   /                  comy.controller.Users#index
GET   /admin             comy.controller.Admins#index
POST  /admin/login       comy.controller.Admins#doLogin
GET   /admin/login       comy.controller.Admins#login
POST  /admin/logout      comy.controller.Admins#logout
POST  /api/shorten       comy.controller.Api#shorten
GET   /user/qrcode       comy.controller.Users#qrcode
POST  /user/shorten      comy.controller.Users#shorten
GET   /xitrum/routes.js  xitrum.routing.JSRoutesController#routes
GET   /:key              comy.controller.Api#lengthen
[INFO] HTTP server started on port 8364
[INFO] HTTPS server started on port 4364
[INFO] Xitrum started in development mode
[WARN] For security, change secureKey in config/xitrum.conf to your own!
[DEBUG] 127.0.0.1 GET / -> comy.controller.Users#index -> 304, 12826 [ms]
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/xitrum.css?DMtin-KdUgKxwWIyHp3E4A -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /css/960/reset.css?Xq_VnHN70_Ml8A6d5EodPA -> 304 (static file)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/jquery.validate-1.11.0/additional-methods.js?jsSscBVWrM67CvC64mN4JA -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /css/960/text.css?mrSBEVb_BtylYA1nYckisw -> 304 (static file)
[DEBUG] 127.0.0.1 GET /css/960/960_24_col.css?tNeDk3-tuRR-zz3JlSlNoA -> 304 (static file)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/jquery-1.9.1.js?CMI101d1DGV6wdt9HPZWqQ -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/jquery.validate-1.11.0/jquery.validate.js?vuOcGEPKqE0e3z-WHVFusQ -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /css/application.css?eUnEeLwgFmsxPR5Zwa3GHw -> 304 (static file)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/knockout/knockout-2.2.1.js?OlzQNFxnNSbsmBMwrOY1og -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/knockout/knockout.mapping-2.4.1.js?GGC6X5iAu9sxxVzAL2AwVA -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /css/index.css?nPVTm_tjpMw2_j2NuihPEw -> 304 (static file)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/jquery.validate-1.11.0/localization/messages_ja.js?OssdU2Xx1XweAQMI5bBibA -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/xitrum.js?Ar5R6KBRXS7truloJb7gjQ -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/sockjs-0.3.4.js?G6ezG627D2WKnJ3F55SoNQ -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 GET /css/smart_corners.css?C7a3gzJeZ-Kj9NvgVaaHVQ -> 304 (static file)
[DEBUG] 127.0.0.1 GET /xitrum/routes.js?AJYbHqw5u85A13FeV4XpDw -> xitrum.routing.JSRoutesController#routes, uriParams: {AJYbHqw5u85A13FeV4XpDw: } -> 304, 19 [ms]
[DEBUG] 127.0.0.1 GET /img/csc_bl.png -> 304 (static file)
[DEBUG] 127.0.0.1 GET /img/csc_tr.png -> 304 (static file)
[DEBUG] 127.0.0.1 GET /img/csc_tl.png -> 304 (static file)
[DEBUG] 127.0.0.1 GET /img/csc_br.png -> 304 (static file)
[DEBUG] 127.0.0.1 GET /resources/public/xitrum/ajax-loader.gif -> 304 (resource in JAR)
[DEBUG] 127.0.0.1 POST /user/shorten -> comy.controller.Users#shorten, bodyParams: {key: , url: http://mobion.jp/} -> 200, 2083 [ms]
[DEBUG] 127.0.0.1 GET /user/qrcode?url=http%3A%2F%2Flocalhost%3A8364%2FYmzEE0z -> comy.controller.Users#qrcode, uriParams: {url: http://localhost:8364/YmzEE0z} -> 200, 660 [ms]
[DEBUG] 192.168.1.177 GET / -> comy.controller.Users#index -> 200, 27 [ms]
[DEBUG] 192.168.1.177 POST /user/shorten -> comy.controller.Users#shorten, bodyParams: {key: , url: http://mobion.jp/} -> 200, 19 [ms]
[DEBUG] 192.168.1.177 GET /user/qrcode?url=http%3A%2F%2F192.168.1.172%3A8364%2FYmzEE0z -> comy.controller.Users#qrcode, uriParams: {url: http://192.168.1.172:8364/YmzEE0z} -> 200, 74 [ms]

Written by Xavier

Tháng Tư 2, 2013 lúc 5:46 chiều

Posted in Scala, Xitrum

Tagged with , , ,

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: