mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add built-in PostgreSQL for simple production setup (#2345)
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
This commit is contained in:
+6
-13
@@ -98,12 +98,8 @@ PATH="$STANDALONE_INSTALL_PREFIX/bin:\$PATH"
|
||||
EOF
|
||||
fi
|
||||
cath <<EOF
|
||||
Run Coder (temporary):
|
||||
$STANDALONE_BINARY_NAME server --dev
|
||||
|
||||
Or run a production deployment with PostgreSQL:
|
||||
CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \\
|
||||
$STANDALONE_BINARY_NAME server
|
||||
Run Coder:
|
||||
$STANDALONE_BINARY_NAME server
|
||||
|
||||
EOF
|
||||
}
|
||||
@@ -115,15 +111,12 @@ $1 package has been installed.
|
||||
|
||||
To run Coder as a system service:
|
||||
|
||||
# Configure the PostgreSQL database for Coder
|
||||
# Set up an external access URL or enable CODER_TUNNEL
|
||||
sudo vim /etc/coder.d/coder.env
|
||||
# Have systemd start Coder now and restart on boot
|
||||
# Use systemd to start Coder now and on reboot
|
||||
sudo systemctl enable --now coder
|
||||
|
||||
Or, run a temporary deployment (all data is in-memory
|
||||
and destroyed on exit):
|
||||
|
||||
coder server --dev
|
||||
# View the logs to ensure a successful start
|
||||
journalctl -u coder.service -b
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user