Skip to content

Instantly share code, notes, and snippets.

View grassiricardo's full-sized avatar

Ricardo Grassi grassiricardo

View GitHub Profile
@grassiricardo
grassiricardo / dokku_snippets_new_app.txt
Last active October 30, 2019 20:39
Snippets Dokku
Doc Official - http://dokku.viewdocs.io/dokku/getting-started/advanced-installation
Instalar o dokku
wget https://raw.githubusercontent.com/dokku/dokku/master/bootstrap.sh;
sudo DOKKU_TAG=v0.19.5 bash bootstrap.sh
Adicionando chave ssh
* Acesse o IP publico da maquina e cole seu SSH
Criando uma aplicação dokku dentro da maquina
# Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum; this matches the default thread size of Active Record.
#
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
threads threads_count, threads_count
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.