Migrating a Ghost-CLI Install

Hi.

With the release of version 6.1.0, I am trying to migrate my current Ghost-CLI install which is self hosted running 5.130.5. I am confused at section How To Install Ghost With Docker (preview) - Ghost Developer Docs specifically “Edit the .env file and change:”. I don’t have a .env file in the /opt/ghost directory. Am I missing something?

Thank you for the help!

opt ghost

Files with a . in front of the name are hidden files.

You should see a .env.example file if you run ls -a. You can copy that and rename it to .env.

Thank you @jannis .

I ran the migration assistant

bash scripts/migrate.sh

and it finished successfully without any errors but my site can’t be reached. So to revert the changes I tried running

bash recovery_instructions.sh

to restore my original Ghost site but I cannot find the script within the scripts directory. Also, the exact error I am getting when I run

docker compose logs caddy

says

 Error: adapting config using caddyfile: ambiguous site definition: brianfajardo.com

Sharing my caddyfile with you. All I changed was the CHANGE_ME to my domain brianfajardo.com

scripts directory

I had a similar time when the revert script didn’t run. You can just manually start Ghost and NginX, IIRC.

Thanks Cathy. I will go ahead and do that, but I still want to migrate my Ghost-CLI install and have my site running. I think I have a configuration error either from Caddy or Tinybird? Everything is still new to me, so I am figuring things out. Will let you know if I still need help.

Thank you!

Hey so I am struggling here. The

Error: adapting config using caddyfile: ambiguous site definition: brianfajardo.com

doesn’t make sense. All I changed was the CHANGE_ME block to my domain brianfajardo.com as the instructions said. After doing this I ran the migration script. Do I need to update my ghost version to 6.1.0 prior to running the migration script? Do I need to do anything else besides the three sections as outlined here? Sharing my .env file if helpful.

Hi @Cathy_Sarisky have you successfully used the migration script before? I am trying to decide if I should keep troubleshooting or just stay on ghost-cli and uninstall docker. Please see my previous comment. I am stuck. Please let me know if you require any additional information!

Thank you.