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_TOKEN
To encode the private key from GitHub, run this command in the folder that you downloaded
private-key.pem
to: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-key
package.json
file, create a new key “now”:<your app name>
will end up as the sodomain of .now.sh.package.json
file, create a new script key"now-start"
, next to the current"start"
scriptscripts/deploy.sh
with this contentchmod +x scripts/deploy.sh
.travis.yml
fileSo 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 URL
URL 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