Skip to content

Commit a41a6fe

Browse files
committed
remove thier link to thier heroku app.
1 parent 830063a commit a41a6fe

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ COPY --from=build /app/config.js ./config.js
4242
COPY --from=build /app/server ./server
4343
COPY --from=build /app/build /app/build
4444

45-
45+
COPY .env .env
46+
#just make the env file go into the docker image?
4647

4748

4849
EXPOSE 5656
@@ -51,15 +52,15 @@ ENV IS_DOCKER=true
5152

5253

5354
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!
5657
ENV PORT=5656
5758

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'
6465

65-
CMD [ "npm", "start" ]
66+
CMD [ "npm", "start" ]

app/src/serverConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ const isProduction = process.env.NODE_ENV === 'production';
22
const serverConfig = {
33
DEV_PORT: 5656,
44
API_BASE_URL: isProduction
5-
? 'https://app.reactype.dev'
5+
? 'https://localhost:5656'
66
: 'http://localhost:5656',
77
// : 'http://localhost:8080',
88
API_BASE_URL2: isProduction
9-
? 'https://app.reactype.dev'
10-
: 'http://localhost:8080',
9+
? 'https://localhost:5656'
10+
: 'http://localhost:8080'
1111
};
1212
// module.exports = config;
1313

config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ const isProduction = process.env.NODE_ENV === 'production';
22
const config = {
33
DEV_PORT: 5656,
44
API_BASE_URL: isProduction
5-
? 'https://app.reactype.dev'
5+
? 'https://localhost:5656'
66
: 'http://localhost:5656',
7+
// Note, here is where you need to change if you are hosting on a differnt place.
78
// : 'http://localhost:8080',
89
API_BASE_URL2: isProduction
9-
? 'https://app.reactype.dev'
10-
: 'http://localhost:8080',
10+
? 'https://localhost:5656'
11+
: 'http://localhost:8080'
1112
};
1213
module.exports = config;

0 commit comments

Comments
 (0)