File tree Expand file tree Collapse file tree 9 files changed +29
-16
lines changed Expand file tree Collapse file tree 9 files changed +29
-16
lines changed Original file line number Diff line number Diff line change 4
4
/.git
5
5
.gitignore
6
6
/env
7
- .env
7
+ .env
Original file line number Diff line number Diff line change 1
- # add only those variables which are used in docker-compose or Dockerfile
2
- # These are the default ENV VARS for docker
3
-
4
- # If you add multiple env files in docker-compose,
5
- # default variables will be override
6
-
7
1
PORT = 5000
8
2
TAG = latest
9
- DOCKER_USERNAME = connectashishk
10
- DOCKER_IMAGE_NAME = ssr-build-stream
3
+ API_URL = https://hn.algolia.com/
4
+ HOST_URL = http://localhost:5000
Original file line number Diff line number Diff line change
1
+ # add only those variables which are used in docker-compose or Dockerfile
2
+ # These are the default ENV VARS for docker
3
+
4
+ # If you add multiple env files in docker-compose,
5
+ # default variables will be override
6
+
7
+ PORT=5000
8
+ TAG=latest
9
+ DOCKER_USERNAME=connectashishk
10
+ DOCKER_IMAGE_NAME=ssr-build-stream
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ npm ci;
4
+
5
+ npm run install;
6
+
7
+ npm rebuild node-sass;
8
+
9
+ npm build;
10
+
11
+ echo " ------ Building Docker Image -------" ;
12
+
13
+ docker-compose build --no-cache
File renamed without changes.
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ services:
13
13
context : .
14
14
dockerfile : Dockerfile
15
15
args :
16
- - PORT:$PORT
16
+ - PORT:$PORT
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ module.exports = {
19
19
new LoadablePlugin ( ) ,
20
20
new CleanWebpackPlugin ( ) ,
21
21
new Dotenv ( {
22
- path : "./env/ dev.env" , // load this now instead of the ones in '.env'
22
+ path : "./dev.env" , // load this now instead of the ones in '.env'
23
23
safe : true , // load '.env.example' to verify the '.env' variables are all set. Can also be a string to a different file.
24
24
systemvars : true , // load all the predefined 'process.env' variables which will trump anything local per dotenv specs.
25
25
silent : true , // hide any errors
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
20
20
new LoadablePlugin ( ) ,
21
21
new CleanWebpackPlugin ( ) ,
22
22
new Dotenv ( {
23
- path : "./env/prod .env" , // load this now instead of the ones in '.env'
23
+ path : "./.env" , // load this now instead of the ones in '.env'
24
24
safe : true , // load '.env.example' to verify the '.env' variables are all set. Can also be a string to a different file.
25
25
systemvars : true , // load all the predefined 'process.env' variables which will trump anything local per dotenv specs.
26
26
silent : true , // hide any errors
You can’t perform that action at this time.
0 commit comments