adamcooke / staytus

💡 An open source solution for publishing the status of your services
http://staytus.co
MIT License
2.17k stars 285 forks source link

How to install Staytus with Dokku #377

Open cbldev opened 2 years ago

cbldev commented 2 years ago

Hello,

Today, I did a fresh deployment of Staytus with Dokku, an open-source small PaaS implementation. I faced some difficulties, here a small documentation on how to built it on Dokku.

1. I installed Dokku on a fresh server with PostgreSQL and Let's Encrypt plugins for SSL support.

2. I switched the application to PostgreSQL :

3. I removed the Dockerfile from the repository.

4. I created the Dokku application, database and linked them.

5. I configured these environments variables for the application on the Dokku server :

6. I configured the application domain and Let's Encrypt SSL certificate with Dokku.

7. I updated the BCrypt gem to to be able to create the first admin user.

8. I pushed to my Dokku server.

9. I ran the install commands inside my container.

bundle exec rake staytus:build staytus:install

10. I enjoyed!

If some people are interested in a more complete documentation on a fork or a PR, feel free to say it there!

Regards