#1
by
Felicity
Hi everyone, A week ago, I was able to deploy my oTree code on oTreeHub and resetdb generally gave me a message like: "This will reset any existing data from your database." However, today I made some changes in some lines of my code (no new packages were used) and now when I click resetdb I get the message "This will delete any existing data from your database." It says resetdb succeeded. But when I click on the Heroku app link above on the same page, it takes me to a page stating "Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command" Can anyone suggest how I could fix this? I don't know what changed from my previous deployment to now.
#2
by
Chris_oTree
The easiest way to view your logs is through the Heroku dashboard at https://dashboard.heroku.com/apps. Then click on the app in question and I think in the top right corner there should be a link to see your logs. The error should be in those logs.
#3
by
Felicity
(edited )
Thanks for your response, Chris! I did not go through the logs (will keep that in mind next time) but I tried running my code on otree devserver again. And this time I got the error "ValueError: settings.ROOMS room name can only contain letters, numbers, and underscores (_)". I realized that I had modified my ROOM name in the settings to a name with a hyphen in it, right before deploying it on oTree Hub. Once I fixed the ROOM name, I was able to deploy it on oTree Hub and access the Rooms tab on Heroku! Interestingly, this error came up only when I tried otree devserver but not when I did otree zip!