dokku / dokku-api

Unmaintained: HTTP API on top of Dokku Daemon
Apache License 2.0
58 stars 15 forks source link

Commands with string length larger 50 characters result in Postgresql error #8

Closed michaelklopf closed 6 years ago

michaelklopf commented 6 years ago

Hello,

we learned that commands larger than 50 characters, e.g., "command": "clone testproject https://github.com/test/testproject.git", result in an error. We use Dokku Clone (https://github.com/crisward/dokku-clone) to setup our applications.

Test wise, we manually set the command property length to 255 at https://github.com/dokku/dokku-api/blob/master/models/command.rb and changed the postgres table to accomodate these changes.

Apparently, the DataMapper defaulted to 50 characters for the database table, because that's how it looked like.

Changing the database helped to fix to the problem. So, preventing the DataMapper default to come through should fix the problem, but we are no Ruby experts.

Kind regards,

Michael

beydogan commented 6 years ago

Thank you for reporting @michaelklopf

I will fix this shortly.