File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ RUN cd /opt/workroom/gitconvex && \
20
20
go build -o ./dist/ && \
21
21
mv build/ dist/
22
22
23
- RUN pwd
24
- RUN ls -ltr
25
-
26
23
EXPOSE 9001
27
24
28
25
CMD go run /opt/workroom/gitconvex/dist/gitconvex-server
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ build:
33
33
cd .. && \
34
34
mkdir -p ./dist && \
35
35
mv build/ ./dist/ && \
36
+ mv ./dist/build ./dist/gitconvex-ui
36
37
echo "Building final go source with UI bundle" && \
37
38
go build -o ./dist && \
38
39
echo "Gitconvex build completed!" && \
39
- echo "Use ./dist/gitconvex-server to start Gitconvex on port 9001"
40
+ mv ./dist/gitconvex-server ./dist/gitconvex
41
+ echo "Use ./dist/gitconvex to start Gitconvex on port 9001"
40
42
test :
41
43
go test -v ./...
42
44
start :
Original file line number Diff line number Diff line change @@ -28,15 +28,21 @@ if "%ip%"==%BUILD% (
28
28
set NODE_ENV = production
29
29
npx tailwindcss build -o src/index.css -c src/tailwind.config.js
30
30
npm run build
31
- move .\build ..\
31
+ echo " Moving react bundle to gitconvex-ui"
32
+ move .\build gitconvex-ui
33
+ move .\gitconvex-ui ..\
32
34
cd ..
33
35
mkdir .\dist
34
- move .\build .\dist\
36
+ echo " Moving UI artifacts to dist folder"
37
+ move .\gitconvex-ui .\dist\
35
38
echo " Removing intermediary folder ui/"
36
39
rd /s /q ui
37
40
echo " Building gitconvex bundle"
38
41
go build -o ./dist
39
- echo " Run ./dist/gitconvex-server.exe to start gitconvex on port 9001"
42
+ cd .\dist
43
+ rename gitconvex-server.exe gitconvex.exe
44
+ echo " Run ./dist/gitconvex.exe to start gitconvex on port 9001"
45
+ cd ..
40
46
)
41
47
42
48
if " %ip% " == %TEST% (
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ func main() {
58
58
router := mux .NewRouter ()
59
59
60
60
// http route handler for provisioning graphql playground UI when the API is directly opened from the browser
61
-
62
61
router .Path ("/gitconvexapi/graph" ).Handler (playground .Handler ("GraphQL" , "/query" ))
63
62
router .Handle ("/query" , srv )
64
63
router .Handle ("/gitconvexapi" , srv )
@@ -70,7 +69,7 @@ func main() {
70
69
)
71
70
if execName != "" {
72
71
currentDir := filepath .Dir (execName )
73
- buildPath = fmt .Sprintf ("%s/build " , currentDir )
72
+ buildPath = fmt .Sprintf ("%s/gitconvex-ui " , currentDir )
74
73
staticPath = fmt .Sprintf ("%s/static" , buildPath )
75
74
}
76
75
You can’t perform that action at this time.
0 commit comments