From 1164d9abee09b8367b9598b041b7d9e44fc72fee Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 4 Apr 2018 18:33:08 -0700 Subject: [PATCH] set up deploy dev/prod scripts --- .gitignore | 3 ++- assets/robots.txt | 2 -- package.json | 5 ++++- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 assets/robots.txt diff --git a/.gitignore b/.gitignore index 5acfeb2a..b665061e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ yarn.lock templates/.* assets/*.css /mastodon -mastodon.log \ No newline at end of file +mastodon.log +assets/robots.txt diff --git a/assets/robots.txt b/assets/robots.txt deleted file mode 100644 index 1f53798b..00000000 --- a/assets/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/package.json b/package.json index 29a01fef..d86e7fa2 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,10 @@ "wait-for-mastodon-data": "node -r esm bin/wait-for-mastodon-data.js", "globalize-css": "node ./bin/globalize-css.js", "deglobalize-css": "node ./bin/globalize-css.js --reverse", - "deploy-dev": "now && sleep 60 && now alias dev.pinafore.social && now rm pinafore --safe --yes", + "stage-dev": "printf 'User-agent: *\nDisallow: /' > assets/robots.txt", + "deploy-dev": "npm run stage-dev && now && sleep 60 && now alias dev.pinafore.social && now rm pinafore --safe --yes", + "stage-prod": "rm -f assets/robots.txt", + "deploy-prod": "npm run stage-prod && now && sleep 60 && now alias pinafore.social && now rm pinafore --safe --yes", "backup-mastodon-data": "pg_dump -Fc mastodon_development > fixtures/dump.sql && cd mastodon/public/system && tar -czf ../../../fixtures/system.tgz ." }, "dependencies": {