DEV Community

Cover image for How to deploy Craft CMS with Postgres on Heroku

How to deploy Craft CMS with Postgres on Heroku

Al Chen on October 01, 2019

Moving your company blog from Medium to a subfolder Why did I start looking into a CMS in the first place? If you are in the SEO space, ...
Collapse
 
azazqadir profile image
Muhammad Azaz Qadir

There are a lot of other ways to deploy Craft CMS. You can use tools like Deployer, DeployBot, DeployHQ or Envoyer. Just install Craft CMS on your server, connect the server and Github repo with the tool and deploy in just few clicks.

Collapse
 
benm profile image
Ben M

Nice write up

Wondering what made deploying to heroku not as easy as you were expecting?

Collapse
 
albertc44 profile image
Al Chen Coda

Lot of additional steps that I had to discover on my own. For instance, that ImageMagick PHP extension was a random package I had to install since Heroku's PHP version doesn't come with that installed.

Collapse
 
benm profile image
Ben M

oh yeah that makes sense. great job working through those and finding the random package that was needed. I've been there and I know it's not fun! :D

Collapse
 
andreimoment profile image
Andrei Andreev • Edited

Al, were you able to get craftcms to write database backups to the storage folder in a heroku install?

It's OK to have these on the ephemenral filesystem as craft triggers immediate download, but with a default installation, craft is unable to write the temp file.

Ideas?

Collapse
 
albertc44 profile image
Al Chen Coda • Edited

Hey Andrei, I actually didn't explore doing database backups yet. My guess there's a plugin for this?