Open etra0 opened 5 months ago
I think you need to do sqlite3 for the schema. Try that and let me know if it works.
I'm not sure how would I do that within the container. Do I need to build the image myself?
You should be able to do it in the environment variable. DATABASE_URL=sqlite3://./db.sqlite
or something to that effect.
ok that actually did something but it's now broken in different ways 😅
I'm doing
echo "hello" | curl -F"file=@-" "http://<host>:4633"
and I get the message:
pastebin_1 | stty: 'standard input': Inappropriate ioctl for device
pastebin_1 | stty: 'standard input': Inappropriate ioctl for device
pastebin_1 | Pruned 0 expired files
pastebin_1 | 2024-06-22T21:17:14.861566Z INFO - athena.framework: Server has started and is listening at http://0.0.0.0:4633
pastebin_1 | 2024-06-22T21:17:18.003719Z INFO - athena.framework: Matched route 'paste69_paste_controller_create_paste' -- route: "paste69_paste_controller_create_paste", route_parameters: {"_route" => "paste69_paste_controller_create_paste", "_controller" => "Paste69::PasteController#create_paste"}, request_uri: "/", method: "POST"
pastebin_1 | 2024-06-22T21:17:18.292685Z ERROR - athena.framework: Uncaught exception #<NilAssertionError:Nil assertion failed> at /usr/share/crystal/src/nil.cr:113:7 in 'not_nil!'
pastebin_1 | Nil assertion failed (NilAssertionError)
pastebin_1 | from /usr/share/crystal/src/nil.cr:113:7 in 'not_nil!'
pastebin_1 | from /usr/share/crystal/src/nil.cr:109:3 in 'not_nil!'
pastebin_1 | from lib/totem/src/totem/config.cr:179:40 in 'url'
pastebin_1 | from src/models/paste.cr:10:5 in 'create_paste'
pastebin_1 | from lib/athena/src/action.cr:42:13 in 'handle_raw'
pastebin_1 | from lib/athena/src/route_handler.cr:19:5 in '->'
pastebin_1 | from /usr/share/crystal/src/http/server/request_processor.cr:51:20 in 'handle_client'
pastebin_1 | from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
pastebin_1 | from ???
pastebin_1 |
Hello, I'm trying to use the docker image (with docker-compose) to run the project, when I start it I get the following message:
And it starts correctly, but as soon as I try to use it, the sqlite error bites back:
do I need a specific configuration that I'm missing? the docker-compose is fairly simple: