File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ COPY --from=build /app/config.js ./config.js
42
42
COPY --from=build /app/server ./server
43
43
COPY --from=build /app/build /app/build
44
44
45
-
45
+ COPY .env .env
46
+ # just make the env file go into the docker image?
46
47
47
48
48
49
EXPOSE 5656
@@ -51,15 +52,15 @@ ENV IS_DOCKER=true
51
52
52
53
53
54
ENV VIDEOSDK='vidsdk'
54
- ENV NODE_ENV='development '
55
- ENV DEV_PORT=5656
55
+ ENV NODE_ENV='production '
56
+ # productino you dolt!, if we are using docker, its production!
56
57
ENV PORT=5656
57
58
58
- ENV MONGO_DB=
'mongodb+srv://NOAH:[email protected] /?retryWrites=true&w=majority&appName=TrialCluster'
59
- ENV GITHUB_CLIENT='github client '
60
- ENV GITHUB_SECRET='github secret'
61
- ENV GOOGLE_CLIENT='gogleclient'
62
- ENV GOOGLE_SECRET='googlebutitssecret'
63
- ENV SESSION_SECRET='session,but its secret'
59
+ # ENV MONGO_DB='mongodb+srv://NOAH:[email protected] /?retryWrites=true&w=majority&appName=TrialCluster'
60
+ # ENV GITHUB_CLIENT='thisisagithubclientrightnow. '
61
+ # ENV GITHUB_SECRET='github secret'
62
+ # ENV GOOGLE_CLIENT='gogleclient'
63
+ # ENV GOOGLE_SECRET='googlebutitssecret'
64
+ # ENV SESSION_SECRET='session,but its secret'
64
65
65
- CMD [ "npm" , "start" ]
66
+ CMD [ "npm" , "start" ]
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ const isProduction = process.env.NODE_ENV === 'production';
2
2
const serverConfig = {
3
3
DEV_PORT : 5656 ,
4
4
API_BASE_URL : isProduction
5
- ? 'https://app.reactype.dev '
5
+ ? 'https://localhost:5656 '
6
6
: 'http://localhost:5656' ,
7
7
// : 'http://localhost:8080',
8
8
API_BASE_URL2 : isProduction
9
- ? 'https://app.reactype.dev '
10
- : 'http://localhost:8080' ,
9
+ ? 'https://localhost:5656 '
10
+ : 'http://localhost:8080'
11
11
} ;
12
12
// module.exports = config;
13
13
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ const isProduction = process.env.NODE_ENV === 'production';
2
2
const config = {
3
3
DEV_PORT : 5656 ,
4
4
API_BASE_URL : isProduction
5
- ? 'https://app.reactype.dev '
5
+ ? 'https://localhost:5656 '
6
6
: 'http://localhost:5656' ,
7
+ // Note, here is where you need to change if you are hosting on a differnt place.
7
8
// : 'http://localhost:8080',
8
9
API_BASE_URL2 : isProduction
9
- ? 'https://app.reactype.dev '
10
- : 'http://localhost:8080' ,
10
+ ? 'https://localhost:5656 '
11
+ : 'http://localhost:8080'
11
12
} ;
12
13
module . exports = config ;
You can’t perform that action at this time.
0 commit comments