Skip to content

How-To: "install.sh" section of install guide is missing information for new users #2378

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

Closed
johnstcn opened this issue Jun 15, 2022 · 1 comment
Assignees
Labels
docs Area: coder.com/docs

Comments

@johnstcn
Copy link
Member

johnstcn commented Jun 15, 2022

Steps to reproduce:

What do I do to set up postgres?

  • Create a Linux VM
  • Run the install script (version 0.6.6)
  • Observe instructions on /etc/coder.d/coder.env
  • Look into this file and observe postgres-related variables
  • Wonder what to put in here

--> Solution:

  1. Add barebones DB setup steps e.g.
# Postgres setup on Debian/Ubuntu
sudo apt-get install -y postgresql
sudo systemctl start postgresql
sudo -u postgresql psql
create role coder with login;
create database coder owner coder;
\password coder
<enter password>
  1. Also add a sample commented postgres connection URL into /etc/coder.d/coder.env because I keep needing to look this up and I presume others would also
# postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]

How do I login?

Once the install script is finished and you start the coder service, you may not see the coder login <host>:<port> message as it's buried in the depths of journald.

--> Solution: also emit this directive in the install.sh output

e.g.

To get started, run `coder login <host:port>`
@johnstcn johnstcn added the docs Area: coder.com/docs label Jun 15, 2022
@johnstcn johnstcn self-assigned this Jun 15, 2022
@johnstcn johnstcn changed the title HOWTO: "install.sh" section of install guide is missing information for new uesrs How-To: "install.sh" section of install guide is missing information for new uesrs Jun 15, 2022
@bpmct bpmct changed the title How-To: "install.sh" section of install guide is missing information for new uesrs How-To: "install.sh" section of install guide is missing information for new users Jun 16, 2022
@khorne3
Copy link
Contributor

khorne3 commented Jun 16, 2022

#2430 fixes the DB issue; the CLI now includes login instructions

@khorne3 khorne3 closed this as completed Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Area: coder.com/docs
Projects
None yet
Development

No branches or pull requests

2 participants