Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
ttzztztz committed Feb 22, 2019
1 parent 401336c commit 013f6e3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ yarn-error.log*
*.ntvs*
*.njsproj
*.sln
*.env

tmp
4 changes: 2 additions & 2 deletions Back/generated/prisma-client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Prisma ([email protected].0). DO NOT EDIT.
// Code generated by Prisma ([email protected].6). DO NOT EDIT.
// Please don't change this file manually but run `prisma generate` to update it.
// For more information, please read the docs: https://www.prisma.io/docs/prisma-client/

Expand Down Expand Up @@ -4516,6 +4516,6 @@ export const models: Model[] = [
export const Prisma = makePrismaClientClass<ClientConstructor<Prisma>>({
typeDefs,
models,
endpoint: `${process.env["PRISMA_ENDPOINT"]}}`
endpoint: `${process.env["PRISMA_ENDPOINT"]}`
});
export const prisma = new Prisma();
9 changes: 9 additions & 0 deletions Back/utils/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ async function install() {
const threadAuthor = new Map<string, string>();
const attachMap = new Map<string, string>();

if (
!fs.existsSync(
process.env.mode === "DEV" ? `./upload` : `/var/bbs/upload`
)
)
fs.mkdirSync(
process.env.mode === "DEV" ? `./upload` : `/var/bbs/upload`
);

// <-- Step 0 Create Reflection between group name and group id
console.log("Creating Group Reflection Maps");
const groupList = await prisma.groups();
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- run
- init
volumes:
- /Users/faraway/Desktop/UniqueBBS/tmp:/var/bbs
- D:/bbs:/var/bbs
restart: always
depends_on:
- prisma
Expand Down

0 comments on commit 013f6e3

Please sign in to comment.