dokku
simple web app
$ dokku create:apps my-web-appProcfile
web: python3 -m serverssl
$ dokku plugins:install https://github.com/dokku/dokku-letsencrypt.git
$ dokku config:set --no-restart my-web-app DOKKU_LETSENCRYPT_EMAIL=your@email.com
$ dokku letsencrypt my-web-appdeploy from local machine
$ git remote add dokku dokku@domain.com:my-web-app
$ git push dokku masterbacking services
install the plugin
$ dokku plugin:install https://github.com/dokku/dokku-mongo.gitcreate service
$ dokku mongo:create mongodblinking service
$ dokku mongo:link mongodb my-web-appmultiple buildpacks
# .buildpacks
https://github.com/heroku/heroku-buildpack-nodejs.git#v123
https://github.com/heroku/heroku-buildpack-python.git#v134# Procfile
web: npm start
cron: python3 -m cronjobsubdirectory
# root package.json
{
"name": "root",
"version": "0.0.1",
"scripts": {
"postinstall": "npm install --prefix server"
}
}# Procfile
web: npm start --perfix serverrun cron tasks
$ dokku ps:scale my-web-app cron=1
$ dokku enter my-web-app cron <COMMAND> # $ dokku enter my-web-app cron python3 -m cronjobLast updated
Was this helpful?