[web] Move repo management
This commit is contained in:
parent
1204525e17
commit
d709109170
@ -45,7 +45,6 @@ sudo service postgresql enable
|
||||
|
||||
We will now create a database and user to work with
|
||||
|
||||
|
||||
```
|
||||
sudo -u postgres psql
|
||||
```
|
||||
@ -83,7 +82,6 @@ Now you need to fill out an environment file for local development. Create a `.e
|
||||
DATABASE_URL=postgresql://bwcontest:pass123@127.0.0.1:5432/bwcontest
|
||||
```
|
||||
|
||||
|
||||
You now need to push the schema generated via the Prisma ORM to set up the tables in the database. This can be done by running...
|
||||
|
||||
```bash
|
||||
|
@ -3,7 +3,7 @@ import type { PageServerLoad } from './$types';
|
||||
import { db } from '$lib/server/prisma';
|
||||
import fs from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
import { createRepos } from '../util';
|
||||
import { createRepos } from '$lib/server/repos';
|
||||
|
||||
export const load = (async ({ params }) => {
|
||||
const contestId = parseInt(params.contestId);
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { db } from '$lib/server/prisma';
|
||||
import { createRepos } from '$lib/server/repos';
|
||||
import type { Actions, PageServerLoad } from './$types';
|
||||
import { createRepos } from '../util';
|
||||
|
||||
export const load = (async () => {
|
||||
const teams = await db.team.findMany();
|
||||
|
Loading…
Reference in New Issue
Block a user