diff options
author | ofshellohicy <ofshellohicy@gmail.com> | 2014-09-10 11:42:21 +0800 |
---|---|---|
committer | ofshellohicy <ofshellohicy@gmail.com> | 2014-09-10 11:42:21 +0800 |
commit | bbc403b4534d4e93b446959791466c9d55239afc (patch) | |
tree | 94a706f230537f3a2d30cede8ff6e96b254fc0bb | |
parent | update layout tmpl (diff) | |
download | stackbin-bbc403b4534d4e93b446959791466c9d55239afc.tar.gz stackbin-bbc403b4534d4e93b446959791466c9d55239afc.tar.bz2 stackbin-bbc403b4534d4e93b446959791466c9d55239afc.zip |
misc updates
-rw-r--r-- | Makefile | 11 | ||||
-rwxr-xr-x | serve.sh | 3 | ||||
-rw-r--r-- | static/small.css | 2 | ||||
-rw-r--r-- | static/style.css | 6 |
4 files changed, 19 insertions, 3 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..54bc12a --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +export PYTHONWARNINGS?=ignore + +reloadgunicorn: + cat var/app.pid | xargs kill -HUP + +stopgunicorn: + cat var/app.pid | xargs kill -SIGTERM + +clean_pyc: + @find `pwd` \( -name '*.pyc' -o -name '*.ptlc' \) -type f -delete + diff --git a/serve.sh b/serve.sh new file mode 100755 index 0000000..fbc0f55 --- /dev/null +++ b/serve.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gunicorn -D -w8 --bind unix:/tmp/flask-pastebin.sock pastebin:app -p var/app.pid --access-logfile var/out.log --error-logfile var/error.log diff --git a/static/small.css b/static/small.css index 4ed0712..af50a92 100644 --- a/static/small.css +++ b/static/small.css @@ -2,3 +2,5 @@ pre { font-size: 18px; line-height: 1.8em; } + +.page { margin: 50px auto; width: 100%; } diff --git a/static/style.css b/static/style.css index 7905a59..d58599a 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,6 @@ body { margin: 0; padding: 0; } body, input { font-size: 16px; font-family: 'Helvetica Neue', sans-serif; } -.page { margin: 50px auto; width: 100%; } +.page { margin: 50px auto; width: 800px; } h1 { margin: 0; font-weight: normal; color: #c00; } a { color: black; } a:hover { color: #c00; } @@ -12,8 +12,8 @@ dl { overflow: auto; font-size: 14px; } dl dt { font-weight: bold; width: 90px; float: left; clear: left; } dl dd { float: left; margin: 0; padding: 0; } -pre, textarea { font-family: 'Consolas', monospace; font-size: 14px; - background: #eee; padding: 0; margin: 0; +pre, textarea { font-family: 'Consolas', monospace; font-size: 18px; + background: #eee; padding: 0; margin: 0; line-height: 2em; word-break: break-word; white-space: pre-wrap;} textarea { border: none; width: 100%; } .code, .flash { background: #eee; padding: 20px; } |