From f3712e3208bc6935fcad5a8de72b82275b0cdc0e Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 8 Apr 2018 14:43:24 -0700 Subject: [PATCH] charlock holmes hotfix for mastodon --- bin/run-mastodon.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index d4798b5..2e0ad1f 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -13,6 +13,9 @@ const stat = pify(fs.stat.bind(fs)) const writeFile = pify(fs.writeFile.bind(fs)) const dir = __dirname +const GIT_URL = 'https://github.com/nolanlawson/mastodon' +const GIT_BRANCH = 'for-pinafore' + const envFile = ` PAPERCLIP_SECRET=foo SECRET_KEY_BASE=bar @@ -28,8 +31,8 @@ async function cloneMastodon () { await stat(mastodonDir) } catch (e) { console.log('Cloning mastodon...') - await exec(`git clone https://github.com/tootsuite/mastodon "${mastodonDir}"`) - await exec(`git checkout v2.2.0`, {cwd: mastodonDir}) + await exec(`git clone ${GIT_URL} "${mastodonDir}"`) + await exec(`git checkout ${GIT_BRANCH}`, {cwd: mastodonDir}) await writeFile(path.join(dir, '../mastodon/.env'), envFile, 'utf8') } }