summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-16 17:14:00 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-16 17:14:00 +0100
commitddd25703354ee041a5259886d0f636e70bbb55bd (patch)
tree3e3b42cda66077148e05772e7328e48a53c5a572 /yarns
parentd76fb4745e9c65a07796854162c4f05c14d504a3 (diff)
downloadqvisqve-ddd25703354ee041a5259886d0f636e70bbb55bd.tar.gz
Fix: make local yarns work
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900-local.yarn11
1 files changed, 6 insertions, 5 deletions
diff --git a/yarns/900-local.yarn b/yarns/900-local.yarn
index 788c743..e1d62a1 100644
--- a/yarns/900-local.yarn
+++ b/yarns/900-local.yarn
@@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
vars['pubkey'] = pubkey
vars['api.log'] = 'salami.log'
vars['gunicorn3.log'] = 'gunicorn3.log'
- vars['pid-file'] = 'pid'
+ vars['pid-file'] = 'salami.pid'
vars['port'] = cliapp.runcmd([os.path.join(srcdir, 'randport' )]).strip()
vars['API_URL'] = 'http://127.0.0.1:{}'.format(vars['port'])
config = {
@@ -71,11 +71,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
env['SALAMI_CONFIG'] = os.path.join(datadir, 'salami.yaml')
yaml.safe_dump(config, open(env['SALAMI_CONFIG'], 'w'))
argv = [
- 'gunicorn3',
+ os.path.join(srcdir, 'start_salami'),
+ 'debug',
+ 'token.jwt',
+ vars['pid-file'],
+ str(vars['port']),
'--daemon',
- '--bind', '127.0.0.1:{}'.format(vars['port']),
- '-p', vars['pid-file'],
- 'salami.backend:app',
]
cliapp.runcmd(argv, env=env, stdout=None, stderr=None)
until = time.time() + 2.0