set up deploy dev/prod scripts

This commit is contained in:
Nolan Lawson 2018-04-04 18:33:08 -07:00
parent cbf46ccae6
commit 1164d9abee
3 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ templates/.*
assets/*.css assets/*.css
/mastodon /mastodon
mastodon.log mastodon.log
assets/robots.txt

View file

@ -1,2 +0,0 @@
User-agent: *
Disallow: /

View file

@ -23,7 +23,10 @@
"wait-for-mastodon-data": "node -r esm bin/wait-for-mastodon-data.js", "wait-for-mastodon-data": "node -r esm bin/wait-for-mastodon-data.js",
"globalize-css": "node ./bin/globalize-css.js", "globalize-css": "node ./bin/globalize-css.js",
"deglobalize-css": "node ./bin/globalize-css.js --reverse", "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 ." "backup-mastodon-data": "pg_dump -Fc mastodon_development > fixtures/dump.sql && cd mastodon/public/system && tar -czf ../../../fixtures/system.tgz ."
}, },
"dependencies": { "dependencies": {