rittaschool / ritta

Modular open source learning/student management system built with TypeScript and NestJS.
https://ritta.fi
Other
45 stars 5 forks source link

Cant run it #110

Closed Nodirbek-Sharipov closed 2 years ago

Nodirbek-Sharipov commented 2 years ago

Excuse if I'm being dumb but when I run ./scripts/start-docker.sh it gives me a bunch of these errors

src/users/users.service.ts:13:8 - error TS2307: Cannot find module '@rittaschool/shared' or its corresponding type declarations.
gateway_1   | 
gateway_1   | 13 } from '@rittaschool/shared';

OR when I docker-compose up it gives me this error

=> CACHED [builder 4/6] RUN yarn global add turbo                                                                                                                        0.0s
 => [builder 5/6] COPY . .                                                                                                                                                0.3s
 => ERROR [builder 6/6] RUN turbo prune --scope= --docker                                                                                                                 0.5s
------
 > [builder 6/6] RUN turbo prune --scope= --docker:
#12 0.471  ERROR  at least one target must be specified
------
executor failed running [/bin/sh -c turbo prune --scope=${SCOPE} --docker]: exit code: 1
ERROR: Service 'gateway' failed to build : Build failed

😬😬😬

kymppi commented 2 years ago

Uh i see, try running npx turbo build in the project root before running the ./scripts/start-docker.sh command. I'm not sure about the docker-compose, i can look to it tomorrow :)

Nodirbek-Sharipov commented 2 years ago

node -v => v16.11.1 yarn -v => 1.23.0-20220130.1630 Docker Version 4.8.2 (79419) Docker Engine: 20.10.14 Docker Compose: 1.29.2 Docker Credential Helper: v0.6.4 Docker Kubernetes: v1.24.0 Docker Snyk: v1.827.0

Running on MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports) 1.4 GHz Quad-Core Intel Core i5; 16 GB 2133 MHz LPDDR3

Nodirbek-Sharipov commented 2 years ago

npx turbo build

thanks will try

kymppi commented 2 years ago

@raikasdev could you take a look into the <project root>/docker-compose.yml?

kymppi commented 2 years ago

Did you get it working? @Nodirbek-Sharipov

kymppi commented 2 years ago

Closing for inactivity and because #114 merged.