-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
Update admin install instructions for node 20 #1340
Conversation
@audiodude is attempting to deploy a commit to the Mastodon Team on Vercel. A member of the Team first needs to authorize it. |
The way you have it will install Node 20, but that's OK too. |
Oops, thought I edited that. Thanks for the review! |
We actually expect Node 20 in 4.2.x, from the |
I think leaving it at 20 is ideal. That's where the Docker setup is at now. |
Fixes #1339 |
I think we could remove these lines as they're part of the previous instruction in the doc
We can also remove the sudo elevation from the instructions as they're already running as root here. We could also just remove the NODE_MAJOR variable and set it as 20, to keep it clearer. |
…apt command below
Updated, PTAL, thanks! |
There's still a couple sudo in the pipe commands. |
@@ -45,7 +46,7 @@ apt install -y \ | |||
g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf \ | |||
bison build-essential libssl-dev libyaml-dev libreadline6-dev \ | |||
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \ | |||
nginx redis-server redis-tools postgresql postgresql-contrib \ | |||
nginx nodejs redis-server redis-tools postgresql postgresql-contrib \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont like nodejs
being in the "System packages" section here, and I would prefer apt update && apt install -y nodejs
to be in the "Node.js" section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing is that there is a section for nodejs, and a section for PostgreSQL. Both sections instruct you to install a package repository for the respective software. It seems incongruous that for PostgreSQL you would then install it as part of "system packages" but not nodejs?
We could perhaps add documentation about upgrading to a next major version of Node.js, as 22 will become active LTS in October 2024. This requires changing the sources from:
to:
|
We don't really target that yet though. |
Yeah, but it's more to say "You've gotta go back add edit your sources to get updated versions!" |
I think this is outside of the scope of this PR. |
I'd prefer @renchap to review / merge this one (as I've not been through these steps myself). |
Co-authored-by: tibequadorian <9560587+tibequadorian@users.noreply.github.com>
Good catch on the gpg location. |
Instructions taken from https://github.com/nodesource/distributions, which is where the scary message in the ttps://deb.nodesource.com/setup_16.x setup script directs you.