File tree Expand file tree Collapse file tree 3 files changed +25
-39
lines changed
ui/src/Components/DashBoard/Settings Expand file tree Collapse file tree 3 files changed +25
-39
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.15.5-alpine
2
2
3
- WORKDIR /opt/workroom/ gitconvex
3
+ WORKDIR /go/src/github.com/neel1996/ gitconvex-server
4
4
5
5
COPY . .
6
6
@@ -14,13 +14,8 @@ RUN cd ui/ && \
14
14
npx tailwindcss build -o src/index.css -c src/tailwind.config.js && \
15
15
npm run build && \
16
16
mv build/ gitconvex-ui/ && \
17
- mv gitconvex-ui/ ../
18
-
19
- RUN cd /opt/workroom/gitconvex && \
20
- mkdir dist/ && \
21
- go build -o ./dist/ && \
22
- mv gitconvex-ui/ dist/
17
+ mv gitconvex-ui/ ../
23
18
24
19
EXPOSE 9001
25
20
26
- CMD go run /opt/workroom/gitconvex/dist /gitconvex-server
21
+ CMD go run /go/src/github.com/neel1996 /gitconvex-server/server.go
Original file line number Diff line number Diff line change
1
+ version : " 3.3"
1
2
services :
2
3
gitconvex :
4
+ build :
5
+ context : .
3
6
container_name : gitconvex
4
- entrypoint :
5
- - go run /opt/workroom/gitconvex/dist/gitconvex-server
6
- environment :
7
- NODE_ENV : production
8
- expose :
9
- - 9001
10
- healthcheck :
11
- interval : 1m30s
12
- retries : 3
13
- test :
14
- - CMD
15
- - curl
16
- - -f
17
- - http://localhost
18
- timeout : 10s
19
- hostname : gitconvex-container
20
- image : itassistors/gitconvex:2.0.0-beta
21
- labels :
22
- generated : by 8gwifi.org
23
7
ports :
24
- - ' 9001'
25
- volumes :
26
- - primary:/opt
27
- working_dir : /opt/workroom/gitconvex
28
- version : ' 3'
29
- volumes :
30
- primary : null
31
-
8
+ - " 9001:9001"
9
+ networks :
10
+ - gitconvex-network
11
+ image : itassistors/gitconvex
12
+ working_dir : /go/src/github.com/neel1996/gitconvex-server
13
+ deploy :
14
+ replicas : 3
15
+ restart_policy :
16
+ condition : on-failure
17
+ delay : 5s
18
+ max_attempts : 5
19
+ volumes :
20
+ - /:/opt
21
+ entrypoint : /go/src/github.com/neel1996/gitconvex-server/dist/gitconvex-server
22
+ networks :
23
+ gitconvex-network :
24
+ driver : bridge
Original file line number Diff line number Diff line change @@ -105,13 +105,11 @@ export default function Settings(props) {
105
105
} )
106
106
. then ( ( res ) => {
107
107
if ( res . data . data && ! res . data . error ) {
108
- //DATAFILE_UPDATE_SUCCESS
109
108
const updateStatus = res . data . data . updateRepoDataFile ;
110
109
111
110
if ( updateStatus === "DATAFILE_UPDATE_SUCCESS" ) {
112
111
setDbUpdateFailed ( false ) ;
113
112
setViewReload ( localViewReload ) ;
114
- window . location . reload ( ) ;
115
113
} else {
116
114
setDbUpdateFailed ( true ) ;
117
115
setViewReload ( localViewReload ) ;
@@ -289,9 +287,9 @@ export default function Settings(props) {
289
287
Saved Repos
290
288
</ div >
291
289
< >
292
- { repoDetails && repoDetails . repoId ? (
290
+ { repoDetails && repoDetails . repoId && repoDetails . repoId . length ? (
293
291
< >
294
- < div className = "flex my-4 bg-indigo-500 my-1 w-full rounded text-white bg -white shadow p-3 font-sand text-xl font-semibold" >
292
+ < div className = "flex my-4 bg-indigo-500 w-full rounded text-white shadow p-3 font-sand text-xl font-semibold" >
295
293
< div className = "w-1/2 border-r text-center" > Repo ID</ div >
296
294
< div className = "w-1/2 border-r text-center" > Repo Name</ div >
297
295
< div className = "w-1/2 border-r text-center" > Repo Path</ div >
You can’t perform that action at this time.
0 commit comments