Skip to content

Commit 5972005

Browse files
committed
Heroku Deployment Changes with Procfile and CreateExpressApp.ts Update
1 parent 15086b8 commit 5972005

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: NODE_ENV=production yarn --cwd server start

server/src/config/createExpressApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const createExpressApp = (sessionStore: MongoStore): express.Express => {
7373

7474
// Serving static files
7575
if (process.env.NODE_ENV === 'production') {
76-
const root = path.join(__dirname, '../../../../', 'client', 'build');
76+
const root = path.join(__dirname, '../../../', 'client', 'build');
7777

7878
app.use(express.static(root));
7979
app.get('*', (_: any, res: any) => {

0 commit comments

Comments
 (0)