Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added PREFIX and DESTDIR vars to Makefile.

  • Loading branch information...
commit 43b5d6635fb762b6b0c337d216bde6c261917db5 1 parent b83b7de
@mde mde authored
Showing with 18 additions and 6 deletions.
  1. +10 −6 Makefile
  2. +1 −0  bin/cli.js
  3. +7 −0 lib/app.js
View
16 Makefile
@@ -17,22 +17,26 @@
.PHONY: all build install clean uninstall
+PREFIX=/usr/local
+DESTDIR=
+
all: build
build:
@echo 'Geddy built.'
install:
- @mkdir -p /usr/local/lib/node_modules/geddy && \
- cp -R ./* /usr/local/lib/node_modules/geddy/ && \
- ln -snf /usr/local/lib/node_modules/geddy/bin/cli.js /usr/local/bin/geddy && \
- chmod 755 /usr/local/lib/node_modules/geddy/bin/cli.js && \
+ @mkdir -p $(DESTDIR)$(PREFIX)/bin \
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/geddy && \
+ cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
+ ln -snf $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js $(DESTDIR)$(PREFIX)/bin/geddy && \
+ chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js && \
echo 'Geddy installed.'
clean:
@true
uninstall:
- @rm -f /usr/local/bin/geddy && \
- rm -fr /usr/local/lib/node_modules/geddy/ && \
+ @rm -f $(DESTDIR)$(PREFIX)/bin/geddy && \
+ rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
echo 'Geddy uninstalled.'
View
1  bin/cli.js
@@ -98,6 +98,7 @@ var start = function () {
// Worker-process -- start up an app
else {
w = new worker.Worker();
+ geddy.worker = w;
w.init(function () {
geddy.mixin(geddy, w);
app = new App();
View
7 lib/app.js
@@ -331,6 +331,13 @@ var App = function () {
controller.cookies = new CookieCollection(req);
+ if (method == 'POST') {
+ geddy.log.debug(method + ' ' + req.url);
+ req.addListener('data', function (data) {
+ geddy.log.debug('received data');
+ });
+ }
+
if (geddy.config.sessions) {
controller.session =
new sessions.Session(controller, function () {
Please sign in to comment.
Something went wrong with that request. Please try again.