Skip to content

Commit

Permalink
fix: build process
Browse files Browse the repository at this point in the history
  • Loading branch information
enijar committed Nov 16, 2024
1 parent 4fc3211 commit 4497989
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ cp server/.env.example server/.env
npm install
npm run build

npm add -g pm2
pm2 startup

pm2 start --name server /var/www/torrent-streaming/server/build/index.js
pm2 save
```
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"start": "tsx watch src/index.ts",
"build": "tsc && tsconfig-replace-paths",
"build": "tsc && tsconfig-replace-paths && rm -rf build/data build/emails && mv build/src/* build && rm -rf build/src",
"email": "email dev"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion server/src/actions/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Context } from "hono";
import mail from "@/services/mail.js";
import config from "@/config.js";
import User from "@/entities/user.js";
import Login from "../../emails/login.js";
import Login from "../emails/login.js";

export default async function login(ctx: Context) {
const { email = "", uuid = "" } = await ctx.req.json();
Expand Down
File renamed without changes.

0 comments on commit 4497989

Please sign in to comment.