8000 feat: one-line install script by bpmct · Pull Request #1924 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: one-line install script #1924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix systemd instructions
  • Loading branch information
bpmct committed May 31, 2022
commit 936c4665f0bb198cf338dc091bcab45b10dabf41
16 changes: 12 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,18 @@ echo_systemd_postinstall() {
cath << EOF
$1 package has been installed.

To have systemd start coder now and restart on boot:
sudo systemctl enable --now coder@\$USER
Or, if you don't want/need a background service you can run:
coder
To run Coder as a system service:

# Configure the PostgreSQL database for Coder
sudo vim /etc/coder.d/coder.env

# Have systemd start Coder now and restart on boot
sudo systemctl enable --now coder

Or, run a temporary deployment (all data is in-memory
and destroyed on exit):

coder server --dev
EOF
}

Expand Down
0