Primero el ejecutable. Como brew es mágico, tons:
brew install vaultNecesitamos un archivo de configuración. El que estoy usando ahorita en mi máquina es:
storage "file" {
| #!/bin/bash | |
| # Set the direction based on the first argument, default to 'up' | |
| direction=${1:-up} | |
| token="token" | |
| # Endpoint and entity ID | |
| endpoint="http://homeassistant.local:8123/api" | |
| entity_id="light.desk_light_office" |
| 11 | |
| 220 | |
| 2202 | |
| 221 | |
| 2221 | |
| 2223 | |
| 2224 | |
| 2225 | |
| 2226 | |
| 2227 |
| sudo su | |
| cd /var/app/current | |
| su -s /bin/bash webapp | |
| rails c |
| for gem in `gem list --no-versions`; do | |
| gem uninstall $gem -aIx | |
| done |
I hereby claim:
To claim this, I am signing this object:
| var https = require('https'); | |
| function generaTexto(event) { | |
| var text; | |
| if (event.marker) { | |
| text = 'AppSignal recibió un release nuevo en el app ' + event.marker.site; | |
| } else if (event.exception) { | |
| text = 'AppSignal registró un error en el app ' + event.exception.site + "\n"; | |
| text += '_'+ event.exception.exception +'_ : ' + event.exception.message + "\n"; |
Primero hay que agregar las siguientes líneas a la sección de development en el Gemfile
gem 'capistrano', require: false
gem 'capistrano-rbenv', require: false
gem 'capistrano-rails', require: false
gem 'capistrano-bundler', require: false
gem 'capistrano3-puma', require: false| sudo apt-get update | |
| sudo apt-get install -y build-essential git | |
| sudo apt-get install postgresql | |
| # https://www.digitalocean.com/community/tutorials/scaling-ruby-on-rails-setting-up-a-dedicated-postgresql-server-part-3 | |
| sudo vim /etc/postgresql/9.3/main/postgresql.conf # Para aceptar conexiones de todas las ips | |
| sudo vim /etc/postgresql/9.3/main/pg_hba.conf # Para restringir quién se puede loginear |
| upstream app { | |
| server 127.0.0.1:3000 fail_timeout=0; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name example.com www.example.com; | |
| ssl_certificate /etc/letsencrypt/live/www.example.com/fullchain.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/www.example.com/privkey.pem; |