Skip to content

Conversation

Juju-archy
Copy link
Contributor

Describe your PR

Guide to deploy Ghost Blog (Node.js, Cellar, MySQL) on Clever Cloud

Checklist

Reviewers

Who should review these changes? @CleverCloud/reviewers

Copy link

github-actions bot commented Jul 10, 2025

✅ Review app deployed

Check how your changes look like!

ℹ️ Name 🔗 Infos & links
🌱 Latest deployed commit 483fcfb
👁️ Preview https://documentation-PR-699.cleverapps.io/developers

@davlgd davlgd self-assigned this Jul 11, 2025
@davlgd davlgd force-pushed the guide-ghost-blog-documentation branch from 3e84fdf to 0b3a36e Compare July 15, 2025 09:21
@davlgd davlgd force-pushed the guide-ghost-blog-documentation branch from 0b3a36e to ab05e2f Compare July 15, 2025 19:38
@davlgd davlgd force-pushed the guide-ghost-blog-documentation branch from ab05e2f to 00e7b42 Compare July 17, 2025 19:43
@davlgd davlgd force-pushed the guide-ghost-blog-documentation branch from 00e7b42 to 9782ba1 Compare July 24, 2025 20:34
Copy link
Collaborator

@davlgd davlgd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, I suggested changes. The most big part is that we can provide an example git repository the user just need to clone/fork and then create/configure the application to deploy


## Installation and Configuration

### Initialize Your Project
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this part is mostly moving files/editing config of the Ghost project, maybe we could just:

  • Do it in a Clever Cloud repo
  • Provide the preconfigured repo link, users just have to clone it
  • Provide users needing more info about Ghost and how it works a link to Ghost doc

Comment on lines +78 to +79
clever addon create mysql-addon --plan s_sml myblogsql
clever service link-addon myblogsql
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can link it at add-on creation

Comment on lines +84 to +90
```sh
clever env set database__connection__host <ADDON_HOST>
clever env set database__connection__user <ADDON_USER>
clever env set database__connection__password <ADDON_PASSWORD>
clever env set database__connection__database <ADDON_DATABASE>
clever env set database__connection__port <ADDON_PORT>
clever env set url https://<domain_URL_blog>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a binding script, as we do in oTree guide for example. If the user changes the add-on or if config changes, it will still work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a .sh script with the env variables directly to make everything more persistent?

Comment on lines +99 to +100
clever addon create cellar-addon --plan s_sml <cellar-app>
clever service link-addon <cellar-app>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link at creation

If you use a binding script maybe you can:

  • Create add-ons
  • Create the binding script
  • Configure env

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand, you want me to put a script to execute directly?

Comment on lines +249 to +255
clever env set mail__from "[email protected]"
clever env set mail__options__service "your-mail-service" # e.g. Mailgun, Gmail, etc.
clever env set mail__options__host "smtp.yourmail.com"
clever env set mail__options__port "587"
clever env set mail__options__secureConnection "false"
clever env set mail__options__auth__user "your-smtp-username"
clever env set mail__options__auth__pass "your-smtp-password"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to use mailpace here ? Maybe we can use a tab to show how to setup both classic SMTP and Mailpace?

Comment on lines +268 to +269
git remote add clever <CLEVER_GIT_URL>
git push clever <branch>:master
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user clever deploy


## More Information

For a small blog, you can use the XS or S Node.js plan.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe provide this info as a [!TIP] when we tell the user how to create the application

@davlgd
Copy link
Collaborator

davlgd commented Aug 12, 2025

@Juju-archy Thanks for the changes. I use this PR to test something for guides, I'll get back to you on it later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants