Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Revert honcho hack introduced in a02471f (PR #3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
techtonik committed Mar 20, 2015
1 parent 05b6571 commit 0065191
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ venv := "./vendor/virtualenv-1.11.6.py"
test_env_files := defaults.env,tests/test.env,tests/local.env
pip := $(env_bin)/pip
honcho := $(env_bin)/honcho
honcho_run := $(honcho) run -e defaults.env,local.env
py_test := $(honcho) run -e $(test_env_files) $(env_bin)/py.test
honcho_run := $(honcho) -e defaults.env,local.env run
py_test := $(honcho) -e $(test_env_files) run $(env_bin)/py.test

ifdef PYTEST
pytest = ./tests/py/$(PYTEST)
Expand Down Expand Up @@ -37,7 +37,7 @@ schema: env

schema-diff: test-schema
pg_dump -sO `heroku config:get DATABASE_URL -a gratipay` >prod.sql
$(honcho) run -e $(test_env_files) sh -c 'pg_dump -sO "$$DATABASE_URL"' >local.sql
$(honcho) -e $(test_env_files) run sh -c 'pg_dump -sO "$$DATABASE_URL"' >local.sql
diff -uw prod.sql local.sql
rm prod.sql local.sql

Expand All @@ -54,7 +54,7 @@ py: env
$(honcho_run) $(env_bin)/python -i gratipay/main.py

test-schema: env
$(honcho) run -e $(test_env_files) ./recreate-schema.sh
$(honcho) -e $(test_env_files) run ./recreate-schema.sh

pyflakes: env
$(env_bin)/pyflakes bin gratipay tests
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ If Gratipay launches successfully it will look like this:

```
$ make run
PATH=env/bin:{lots-more-of-your-own-PATH} env/bin/honcho run -e defaults.env,local.env web
PATH=env/bin:{lots-more-of-your-own-PATH} env/bin/honcho -e defaults.env,local.env run web
2014-07-22 14:53:09 [1258] [INFO] Starting gunicorn 18.0
2014-07-22 14:53:09 [1258] [INFO] Listening at: http://0.0.0.0:8537 (1258)
2014-07-22 14:53:09 [1258] [INFO] Using worker: sync
Expand Down Expand Up @@ -362,7 +362,7 @@ To invoke py.test directly you should use the `honcho` utility that comes
with the install. First `make tests/env`, activate the virtualenv and then:

[gratipay] $ cd tests/
[gratipay] $ honcho run -e defaults.env,local.env py.test
[gratipay] $ honcho -e defaults.env,local.env run py.test

Local Database Setup
--------------------
Expand Down
2 changes: 1 addition & 1 deletion masspay.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
heroku config -s | honcho run -e /dev/stdin ./env/bin/python ./bin/masspay.py -i
heroku config -s | honcho -e /dev/stdin run ./env/bin/python ./bin/masspay.py -i
./bin/masspay.py -o
4 changes: 2 additions & 2 deletions payday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ confirm "$RUN payday #$1?" || exit 0
case "$2" in
"")
start
honcho run -e defaults.env,local.env ./env/bin/payday >>$LOG 2>&1 &
honcho -e defaults.env,local.env run ./env/bin/payday >>$LOG 2>&1 &
;;
"for_real_please")
confirm "$RUN payday #$1 FOR REAL?!?!?!??!?!?" || exit 0
start
heroku config -s | honcho run -e /dev/stdin ./env/bin/payday >>$LOG 2>&1 &
heroku config -s | honcho -e /dev/stdin run ./env/bin/payday >>$LOG 2>&1 &
;;
*)
echo "Your second arg was $2. Wazzat mean?"
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ version="$((prev + 1))"


# Check that the environment contains all required variables
heroku config -sa gratipay | ./env/bin/honcho run -e /dev/stdin \
heroku config -sa gratipay | ./env/bin/honcho -e /dev/stdin run \
./env/bin/python gratipay/wireup.py


# Sync the translations
echo "Syncing translations..."
if [ ! -e .transifexrc -a ! -e ~/.transifexrc ]; then
heroku config -sa gratipay | ./env/bin/honcho run -e /dev/stdin make transifexrc
heroku config -sa gratipay | ./env/bin/honcho -e /dev/stdin run make transifexrc
fi
make i18n_upload
make i18n_download
Expand Down
2 changes: 1 addition & 1 deletion tests/js/utils/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var exec = require('sync-exec');

module.exports = function createSession(user) {
return exec(
'./env/bin/honcho run -e defaults.env,tests/test.env,tests/local.env ' +
'./env/bin/honcho -e defaults.env,tests/test.env,tests/local.env run ' +
'./env/bin/python ./tests/js/utils/auth-helper.py ' + user
).stdout.slice(0, -1);
};

0 comments on commit 0065191

Please sign in to comment.