Skip to content

Commit 99a2feb

Browse files
committed
fix flag parse error in server
1 parent c7598a7 commit 99a2feb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ build:
2424
npm install && \
2525
export NODE_ENV=production && \
2626
echo "Generating production ready css" && \
27+
npm install tailwindcss postcss autoprefixer && \
2728
npx tailwindcss build -o ./src/index.css -c ./src/tailwind.config.js && \
2829
rm package-*.json && \
2930
rm -rf .git/ && \

make.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if "%ip%"==%BUILD% (
2626
npm install
2727
echo "Building UI bundle"
2828
set NODE_ENV=production
29+
npm install tailwindcss postcss autoprefixer
2930
npx tailwindcss build -o src/index.css -c src/tailwind.config.js
3031
npm run build
3132
echo "Moving react bundle to gitconvex-ui"

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var (
2525
func main() {
2626
// To get the current version of gitconvex
2727
versionFlag := flag.Bool("version", false, "To get the current version of gitconvex")
28+
argFlag := flag.String("port", "", "To define the port dynamically while starting gitconvex")
2829
flag.Parse()
2930

3031
if *versionFlag == true {
@@ -113,7 +114,6 @@ func main() {
113114
})
114115

115116
// Checking and Assigning port received from the command line ( --port args )
116-
argFlag := flag.String("port", "", "To define the port dynamically while starting gitconvex")
117117
flag.Parse()
118118

119119
if *argFlag != "" {

0 commit comments

Comments
 (0)