Problems upgrading a simple setup from v2 to v4. #40
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey @solderjs,
it is really awesome that you wrote the new version, and I would love to update. I tried to a twice already, but it is very confusing for me what I need to change.
My current v2 setup is the following:
server.js
./config/letsencrypt
This is very simple. I don't need any more flexibility as I have a simple website.
I would like to avoid a
./greenlock.d
file and if possible keep this to just an additional config file.Can you please let me know how I can replicate this setup with v4?
Thank you very much.
Rather than trying to "migrate", just follow the quickstart from scratch:
https://git.coolaj86.com/coolaj86/greenlock-express.js#user-content-v4-quickstart
A couple of notes:
configDir
isgreenlock.d
and that is where domains are stored, which in the simplest case should be the same as where the certificates are stored.npx
commands shown in the QuickStart are the best way to go. I streamlined away the option for using a static array because it was syntax sugar that cost more than it delivered.I'd also suggest flattening your dev / prod check to something like this:
And then I think you'll be able to use the
serve(app)
as shown in the quickstart.It's definitely inverted from the previous version, which has been an issue for long-time users.
However, the changes make for less configuration overall and streamlined "one right way" to do things - which means that it works the same for 1 domain deployments as for 10,000 domain deployments, without having to have separate documentation.