Skip to content

Commit 8e0db2b

Browse files
Ashish KumarAshish Kumar
authored andcommitted
chore: socket-extensions dependency fixed
chore: updated .env chore: fixed app name in package.json
1 parent 8f053f8 commit 8e0db2b

File tree

12 files changed

+16
-32
lines changed

12 files changed

+16
-32
lines changed

.env renamed to .env.example

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
# If you add multiple env files in docker-compose,
55
# default variables will be override
66

7-
PORT=5000
87
TAG=latest
98
DOCKER_USERNAME=connectashishk
10-
DOCKER_IMAGE_NAME=ssr-build-stream
9+
DOCKER_IMAGE_NAME=ssr-build-stream
10+
11+
PORT=3000
12+
API_URL=https://hn.algolia.com/
13+
HOST_URL=http://localhost:3000

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/client-build
22
/server-build
33
/node_modules
4-
__snapshots__
4+
__snapshots__
5+
.env

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ cd ssr-stream-setup
3030
```
3131
3. Run the install `npm install`
3232

33-
4. To start the server run:
33+
4. Create a new file `.env` and Copy .env.example into .env
34+
35+
5. To start the server run:
3436
```
3537
npm run dev
3638
```

env/dev.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

env/prod.env

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hacker-new-test",
2+
"name": "react-redux-isomorphic-boilerplate",
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",

server/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as bodyParser from "body-parser";
55
import cookieParser from "cookie-parser";
66
import ServeWeb from "./helpers/ServeWeb";
77

8+
require("dotenv").config();
89
const { createProxyMiddleware } = require("http-proxy-middleware");
910
const compression = require("compression");
1011

tools/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# env file
3-
ENV_FILE_PATH=./env/prod.env
3+
ENV_FILE_PATH=./.env
44

55
echo "[INFO] Using $ENV_FILE_PATH"
66

tools/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
ENV_FILE_PATH=./env/prod.env
3+
ENV_FILE_PATH=./.env
44

55
echo "[INFO] Using $ENV_FILE_PATH"
66

0 commit comments

Comments
 (0)