asternic / wuzapi

Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)
MIT License
105 stars 58 forks source link

cant run web after update #15

Closed ssteeltm closed 1 year ago

ssteeltm commented 1 year ago

Hello, thank you for wuzapi! After git pull update I cant login in web: image

ssteeltm commented 1 year ago

As I see it's not creating the databases main and users

ssteeltm commented 1 year ago

If I swtich to my old main.go it creates but still 404 on web

asternic commented 1 year ago

How do you start wuzapi? What command are you using? A few commits past I modified the code to look for the binary path and use that as a base for finding both static and dbdata directories. Do you have those directories on the same folder of the wuzapi binary?

ssteeltm commented 1 year ago

For now testing and debugging, I run it with "go run ."

I made it work, found this change on path and changed back to the old code

asternic commented 1 year ago

With go run binary will be put in some /tmp directory and thus the static and dbdata directories won't be found when using filepath. I do not consider this to be a bug, you should build and run directly from there. Thanks!