-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
44 additions
and
53 deletions.
There are no files selected for viewing
File renamed without changes.
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,28 @@ | ||
# hilite.me | ||
|
||
[hilite.me](http://hilite.me/) is a small webapp that converts your code | ||
snippets into pretty-printed HTML format, easily embeddable into blog posts and | ||
websites. | ||
|
||
## Development | ||
|
||
To set up development environment you need to install these dependencies: | ||
|
||
* On FreeBSD: `portmaster textproc/py-pygments www/nginx www/py-flask` | ||
* On Debian: `aptitude install nginx python-flask python-pygments` | ||
|
||
Edit your main `nginx.conf`: | ||
|
||
http { | ||
... | ||
include /path/to/hilite.me/nginx.conf; | ||
} | ||
|
||
Update the project location in `hilite.me/nginx.conf` and restart nginx. | ||
|
||
Add this line to your `/etc/hosts`: | ||
|
||
127.0.0.1 hilite.dev | ||
|
||
Type `make run` and go to <http://hilite.dev/>. If static files don't load make | ||
sure nginx has rx permissions for the `hilite.me/static` directory. |
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,16 @@ | ||
server { | ||
root /home/alex/Projects/hilite.me/static; | ||
server_name hilite.dev; | ||
|
||
proxy_set_header Host $host; | ||
|
||
location / { | ||
if (-f $request_filename) { | ||
access_log off; | ||
} | ||
|
||
if (!-f $request_filename) { | ||
proxy_pass http://127.0.0.1:5000; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.