Merged
Conversation
agonzalez0515
approved these changes
Sep 8, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here are my notes on how to make it work, it’s not as simple as I initially thought :)
Make a dedicated account for each open source application you want to deploy, as the free account is limited to 3 instances only. Sign up/in at https://zeit.co/login (leave page open, click the link on the email, go back to the tab where you entered your email).
NOW_TOKENTo encode the private key from GitHub, run this command in the folder that you downloaded
private-key.pemto:cat private-key.pem | base64 --input - | pbcopy. The base64 encoded private-key.pem is now in your clipboard, you can paste it into your terminal afternow secret add private-keypackage.jsonfile, create a new key “now”:<your app name>will end up as the sodomain of .now.sh.package.jsonfile, create a new script key"now-start", next to the current"start"scriptscripts/deploy.shwith this contentchmod +x scripts/deploy.sh.travis.ymlfileSo after you merge this PR, watch the travis build logs at travis-ci.org/hoodiehq/first-timers-bot and wait for the deploy step. If all goes well, you should see the logs of the newly deployed version at https://first-timers-bot.now.sh/_logs (look for the timestamps) 🙏
Once that looks all good, you can change the
Webhook URLURL to https://first-timers-bot.now.sh on the bot's app settings.We can add deploy to Glitch separately in another PR
closes #79