Skip to content

Commit 086e30e

Browse files
committed
fixes to standalone script
1 parent 936c466 commit 086e30e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

install.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,12 @@ Standalone release has been installed into $STANDALONE_INSTALL_PREFIX/lib/coder-
8686
8787
Extend your path to use coder:
8888
PATH="$STANDALONE_INSTALL_PREFIX/bin:\$PATH"
89-
Then run with:
90-
coder
89+
Then run Coder (temporary):
90+
coder server --dev
91+
Or run a production deployment with PostgreSQL:
92+
CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \
93+
coder server
94+
9195
EOF
9296
}
9397

@@ -100,14 +104,14 @@ To run Coder as a system service:
100104
101105
# Configure the PostgreSQL database for Coder
102106
sudo vim /etc/coder.d/coder.env
103-
104107
# Have systemd start Coder now and restart on boot
105108
sudo systemctl enable --now coder
106109
107110
Or, run a temporary deployment (all data is in-memory
108111
and destroyed on exit):
109112
110113
coder server --dev
114+
111115
EOF
112116
}
113117

@@ -342,8 +346,8 @@ install_standalone() {
342346
echoh "Installing v$VERSION of the $ARCH release from GitHub."
343347
echoh
344348

345-
fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_$VERSION_$OS_$ARCH.tar.gz" \
346-
"$CACHE_DIR/coder_$VERSION_$OS_$ARCH.tar"
349+
fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_${OS}_${ARCH}.tar.gz" \
350+
"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar"
347351

348352
# -w only works if the directory exists so try creating it first. If this
349353
# fails we can ignore the error as the -w check will then swap us to sudo.

0 commit comments

Comments
 (0)