Ahhh I figured it out. Apparently shards update doesn't actually update the directory in ./lib, thus my version locally was still using the older Athena version. I'll push a fix right now.
After cloning, user must create the logs/development.log directory and file. The code will look for it and will not compile it does not exist.
Was not yet able to find the problem when send post request to localhost:8888/user, error in logs is:
[2019-11-25T05:37:51.194843000Z] main.CRITICAL: Unhandled exception: relation "users" does not exist in Blog::Controllers::UserController at src/controllers/user_controller.cr:6:107 {"cause":null,"cause_class":"Nil"}
Thanks, I pushed a fix for #1. The other error would be because Granite can't find a table called users in the database you're connected to. Be sure you ran the few SQL scripts I've included if you're using PG. Otherwise, be sure you create tables in your DB of choice.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ahhh I figured it out. Apparently
shards update
doesn't actually update the directory in./lib
, thus my version locally was still using the older Athena version. I'll push a fix right now.that's great! thank you very much. I will check in a bit and clone the project again.
I really appreciate your help
Code is now running, just noticed:
After cloning, user must create the logs/development.log directory and file. The code will look for it and will not compile it does not exist.
Was not yet able to find the problem when send post request to localhost:8888/user, error in logs is:
[2019-11-25T05:37:51.194843000Z] main.CRITICAL: Unhandled exception: relation "users" does not exist in Blog::Controllers::UserController at src/controllers/user_controller.cr:6:107 {"cause":null,"cause_class":"Nil"}
I will try later to figure this out
Thanks, I pushed a fix for #1. The other error would be because Granite can't find a table called
users
in the database you're connected to. Be sure you ran the few SQL scripts I've included if you're using PG. Otherwise, be sure you create tables in your DB of choice.