Heroku and free plan
In a blog post published at August 25, 2022 , Heroku general manager stated that they will stop offering free dynos
dyno is heroku computing unit starting November, 28 2022, check the blog post and Remove free products plan
This decision will affect solo developers who use heroku to te st their ideas or host projects at early stage, and regarding to how easy it is to use heroku now we need an alternative
what is dokku ?
An open source PAAS alternative to Heroku. Dokku helps you build and manage the lifecycle of applications from building to scaling.
Dokku is an extensible, open source Platform as a Service that runs on a single server of your choice. Dokku supports building apps on the fly from a git push via either Dockerfile or by auto-detecting the language with Buildpacks, and then starts containers based on your built image. Using technologies such as nginx and cron, Web processes are automatically routed to, while background processes and automated cron tasks are also managed by Dokku.
Minimum requirement to run dokku are:
- A fresh installation of
Debian 10+ x64.
- At least 1 GB of system memory.
- Attaching at least one domain name to your server ip, say
- First ssh into your remote server.
- Download the
- Run the installer script by prefixing with
DOKKU_TaG=xxxenv variable to specify which version you want, latest is better offcourse
This command will automatically use
aptto update and install dependecies such as docker, then it will created the required containers, also a new user
dokkuwill be created
Next step is to add your public ssh key to be able to run dokku commands remotly, because dokku doesn’t have a cli to install on your local machine like
To add your key, get the content from your local machine, the key filename usually called
copy the file content and then on the remote server run this last command
once this is done, you can execute
dokku commands remotly from your locall machine like this
- Now we need set the domain as a dokku global domain.
with this done, any app you deploy will be available at
app-name.example.com by default unless you add another domain specific to the app
now you can create a new empty app like this
In the next article i will show you how to deploy a NextJS application to your server