# Easiest Deployment with dokku
###### tags: `slide`
---
# How to deploy your code?
* FTP
* rsync
* Container
* and lots of services
----
![](https://i.imgur.com/U2rV0E8.png)
## Best PaaS(?)
---
# Why dokku?
#### Just like heroku but FREE!
#### ++commit & push++
----
## Let's make a bot
## step by step
![](https://i.imgur.com/9mRdeeG.png)
---
## Setup
```
# for debian systems, installs Dokku via apt-get
wget https://raw.githubusercontent.com/dokku/dokku/v0.9.4/bootstrap.sh;
sudo DOKKU_TAG=v0.9.4 bash bootstrap.sh
```
![Help](https://i.imgur.com/y8vn1ix.png =700x400)
----
# Project Initial
```
// create new app
dokku apps:create sybot
// check your app
dokku ls
// prepare your apps
// dokku auto detect just like heroku
// e.g., package.json
git remote add dokku dokku@HOST:APP
git push dokku master
```
----
# App Management
```
// need config?
dokku config:set <app> KEY=VAL
dokku config:unser <app> KEY
// log?
dokku logs <app>
// tail?
dokku logs <app> -t
// process
dokku ps <app>
// backend?
// http://dokku.viewdocs.io/dokku/community/plugins/
dokku plugin:install <service>
```
----
# e.g., https://
```
// setup your custom domain
// dokku domains:help
dokku domains:add <app> <your domain>
// https
// try plugin:letsencrypt
dokku plugin:install https://github.com/dokku/dokku-letsencrypt
// dokku letsencrypt:help
dokku letsencrypt <app>
```
---
#### Go deploy your app and enjoy it!
<iframe src="https://giphy.com/embed/laUY2MuoktHPy" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
{"metaMigratedAt":"2023-06-14T13:07:00.668Z","metaMigratedFrom":"YAML","title":"Easiest Deployment with dokku","breaks":true,"slideOptions":"{\"transition\":\"slide\",\"theme\":\"White\"}","contributors":"[]"}