Code Monkey home page Code Monkey logo

Comments (6)

QuiiBz avatar QuiiBz commented on August 29, 2024 1

Here's the PR migrating the monorepo to TS + Rust:

from lagon.

QuiiBz avatar QuiiBz commented on August 29, 2024 1

I keep it for historical purposes, but it will be removed in the future. The Rust runtime is faster, safer, and more performant than the JS runtime so it doesn't make sense to keep both.

from lagon.

lilong7676 avatar lilong7676 commented on August 29, 2024

there is another problem,But I have already run redis and mysql locally, the command used is docker compose up -d

➜  lagon git:(main) ✗ pnpm run docker:start:serverless
 WARN  Unsupported engine: wanted: {"node":">=16.0.0"} (current: {"node":"v14.19.3","pnpm":"7.3.0"})

> [email protected] docker:start:serverless /Users/lilonglong/Desktop/long_git/lagon
> docker run --rm -p 4000:4000 lagon/serverless


> @lagon/[email protected] start /app/packages/serverless
> node dist/index.js

/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/index.js:49028
        throw new PrismaClientInitializationError(message, this.client._clientVersion);
              ^

PrismaClientInitializationError: Can't reach database server at `localhost`:`3306`

Please make sure your database server is running at `localhost`:`3306`.
    at RequestHandler.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/index.js:49028:15)
    at async PrismaClient._request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/index.js:49919:18)
    at async master (file:///app/packages/serverless/dist/index.js:896:25) {
  clientVersion: '3.15.2',
  errorCode: undefined
}
 ELIFECYCLE  Command failed with exit code 1.

from lagon.

QuiiBz avatar QuiiBz commented on August 29, 2024

When running in production, we use PlanetScale for the database. You might need to set up an external database when running it in Docker.

We're currently on a big refactor of moving from Node.js to Rust for the runtime, serveless and CLI packages. Docker setup hasn't yet been migrated, but the repo should be fully working in the next few days.

from lagon.

lilong7676 avatar lilong7676 commented on August 29, 2024

Will the JS version be kept or maintained? Because I don't know the Rust language very well

from lagon.

lilong7676 avatar lilong7676 commented on August 29, 2024

I see, thanks.

from lagon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.