Closed ajtran303 closed 4 years ago
But I actually don't know how to debug the Travis build log so I may be off the mark.
Builds triggered from Pull Requests will never trigger a deploy.
# .travis.yml
langauge: ruby
rbenv:
- 2.5.3
addons:
postgresql: 9.6
script:
- bundle exec rails db:{create,migrate} RAILS_ENV=test
- bundle exec rspec
deploy:
provider: heroku
api_key:
secure: SECURE_KEY
app:
run: rails db:migrate
on:
repo: Kathybui732/viewing_party
branch: main
app:
key is not paired with a value. That would totally explain Message: Couldn't find that app.
This StackOverflow post says that we should use the randomly-generated app name with dashes for the key-value pair.
app:
key is not paired with a value. That would totally explainMessage: Couldn't find that app.
This StackOverflow post says that we should use the randomly-generated app name with dashes for the key-value pair.
I think this is the strategy. Add the app name. Check out the comment in this snippet:
# .travis.yml
app: your-app-name # optional if it's the same as your repo name
Our Heroku app name is definitely not the same as our repo name! So that makes it not optional. Definitely need to pair a value to that key.
But now I wonder - how did our app get deployed at all the first time around? Was the name changed or deleted or anything? I don't think so....
Our production environment hasn't updated in the last three pull requests
The build logs show the same messages:
Edit: this may not be the strat, see followup posts below
I think we can fix it with some command line prompts: