This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iss #22: update stubs config, fix type param, add dev run scripts & c…
…onfig
- Loading branch information
Showing
6 changed files
with
114 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This is the main configuration file for the application. | ||
# Syntax - HOCON: https://github.com/typesafehub/config#examples-of-hocon | ||
# ~~~~~ | ||
|
||
# Sources | ||
# ------- | ||
|
||
github { | ||
api_url = "http://localhost:8000" | ||
|
||
# App token for github api access | ||
# | ||
# Generate it on: [https://github.com/settings/applications] | ||
# Scope `public_repo` is required. | ||
# For fetching private organization repositories also add `repo` scope. | ||
app_token = "aaaabbbbccccddddeeeeffff0000111122223333" | ||
|
||
# key - user/org name, value - options | ||
sources: [ | ||
# users | ||
maizy | ||
{ | ||
name = hhru | ||
org = true | ||
include_private_repos = true | ||
} | ||
] | ||
} | ||
|
||
|
||
# Application settings | ||
# -------------------- | ||
application: { | ||
|
||
# Secret key | ||
# ---------- | ||
# The secret key is used to secure cryptographics functions. | ||
# If you deploy your application to several instances be sure to use the same key! | ||
secret = "p:8d6@s;Dndb[aQ^yjvRGmv308R4KWk3_LRST2sMx7gxDJTNPXIaVjHVEnAjg^KS" | ||
|
||
# The application languages | ||
langs = "ru,en" | ||
lang.cookie = "lang" | ||
} | ||
|
||
|
||
# Logger | ||
# ------ | ||
# You can also configure logback (http://logback.qos.ch/), by providing a logger.xml file in the conf directory . | ||
logger: { | ||
# Root logger: | ||
root: ERROR | ||
|
||
# Logger used by the framework: | ||
play: INFO | ||
|
||
# Logger provided to your application: | ||
application: DEBUG | ||
|
||
# HTTP Requests & responses log | ||
com.ning.http.client: DEBUG | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
PORT=9010 | ||
BIN=`which play` | ||
SCRIPT_PATH=$(cd ${0%/*} && echo $PWD/${0##*/}) | ||
ROOT=`dirname "${SCRIPT_PATH}"` | ||
|
||
TYPE="${1}" | ||
CONFIG="${2}" | ||
cd "${ROOT}" | ||
|
||
echo -ne "\033]2;hedgehog play app\007" | ||
echo -e "Run app in ${ROOT}, port ${PORT}, play=${BIN}\n" | ||
if [ -z "${CONFIG}" ]; then | ||
if [ "${TYPE}" == "real" ]; then | ||
echo "With real data (application.conf)" | ||
"${BIN}" \ | ||
"~run ${PORT}" | ||
else | ||
echo "With stubbed data (dev.conf)" | ||
"${BIN}" \ | ||
"-Dconfig.file=${ROOT}/conf/dev.conf" \ | ||
"~run ${PORT}" | ||
fi | ||
else | ||
echo "With config ${CONFIG}" | ||
"${BIN}" \ | ||
"-Dconfig.file=${CONFIG}" \ | ||
"~run ${PORT}" | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
SCRIPT_PATH=$(cd ${0%/*} && echo $PWD/${0##*/}) | ||
ROOT=`dirname "${SCRIPT_PATH}"` | ||
|
||
cd "${ROOT}" | ||
|
||
echo -ne "\033]2;zaglushka.py for hedgehog\007" | ||
echo -e "Run zaglushka.py ..." | ||
zaglushka.py --ports=8000 "--config=${ROOT}/api_stubs/config.json" |