ajnart / subs

Subs ! Track your subscriptions easily
https://subs.ajnart.fr/
361 stars 19 forks source link

Patch 1 #26

Closed Avonae closed 6 days ago

Avonae commented 1 week ago

Thank you for contributing to subs ! So that your Pull Request can be handled effectively, please populate the following fields (delete sections that are not applicable)

Category

Documentation

Overview

Add docker installation

vercel[bot] commented 1 week ago

@Avonae is attempting to deploy a commit to the ajnart's projects Team on Vercel.

A member of the Team first needs to authorize it.

ajnart commented 1 week ago

Thank you for this @Avonae ! Actually I have pushed a docker image at ghcr.io/ajnart/subs It will update automatically to latest so no need to build it yourself.

Can you try using my docker image and tell me if you still encounter issues ?

Avonae commented 1 week ago

sure

Avonae commented 1 week ago

it works but i got this errors:

Error: Cannot find module '@libsql/linux-x64-musl'
Require stack:
- /app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at /app/node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:55:36
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at mod.require (/app/node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:65:28)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js:22:10)
    at Object.<anonymous> (/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js:45:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js'
  ]
}
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
Avonae commented 1 week ago

I also found out that my changes doesn't save actually: image I've deleted couple services and here they are again after F5

I wrote about this at #25

ajnart commented 6 days ago

it works but i got this errors:

Error: Cannot find module '@libsql/linux-x64-musl'
Require stack:
- /app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at /app/node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:55:36
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at mod.require (/app/node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:65:28)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js:22:10)
    at Object.<anonymous> (/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js:45:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/.pnpm/libsql@0.4.6/node_modules/libsql/index.js'
  ]
}
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
 ⨯ Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production

Interesting, I think it means you don't have the correct binary to use the database, so it cannot write to it. I will look into it

ajnart commented 6 days ago

Closing this PR as no longer relevant. Feel free to do another one to include instructions about how you started the docker container