Permalink
Browse files

moved web port to settings and elaborated on README

  • Loading branch information...
1 parent 51a81eb commit c9e3106624f26d88466aa154944adb11ed04be2f Hilary Mason committed Dec 18, 2010
Showing with 12 additions and 9 deletions.
  1. +6 −6 README
  2. +3 −2 gitmark_web.py
  3. +3 −1 settings.py
View
@@ -45,17 +45,17 @@ python delicious_import.py [username] [password]
(be patient if you have a lot of them.)
-===
-Web
-===
+=============================
+Using the Browser Bookmarklet
+=============================
-Run the gitmark_web server:
+First, run the gitmark_web server:
python gitmark_web.py
-Copy this bookmarklet to your browser:
+Copy this bookmarklet to your browser (where 44865 is the port you set in settings.py):
-javascript:(function(){void(open('http://localhost:8080/new?url='+window.location,'gitmark','resizable,scrollbars,width=250,height=250'))})();
+javascript:(function(){void(open('http://localhost:44865/new?url='+window.location,'gitmark','resizable,scrollbars,width=250,height=250'))})();
=======
View
@@ -1,14 +1,15 @@
"""
Web frontend to gitmarks for use as a bookmarklet:
-javascript:(function(){void(open('http://localhost:8080/new?url='+window.location,'gitmark','resizable,scrollbars,width=250,height=250'))})();
+javascript:(function(){void(open('http://localhost:44865/new?url='+window.location,'gitmark','resizable,scrollbars,width=250,height=250'))})();
"""
import bottle
bottle.debug(False)
from bottle import route, run, request, response, template
from gitmark import gitMark
+import settings
@route("/new")
def new():
@@ -38,4 +39,4 @@ def create():
return template("create")
-run(host="localhost", port="8080", reloader=False)
+run(host="localhost", port=settings.GITMARKS_WEB_PORT, reloader=False)
View
@@ -1,3 +1,5 @@
TAG_PATH = 'tags/'
-CONTENT_PATH = 'content/'
+CONTENT_PATH = 'content/'
+
+GITMARKS_WEB_PORT = 44865

0 comments on commit c9e3106

Please sign in to comment.