File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ sudo ./bootstrap.sh
3030
3131Ahora vamos a agregar el repositorio de Phusion Passenger para poder
3232instalar la versión de Nginx con el módulo de Passenger incluido.
33+ Los pasos a seguir son que estan descriptos en la documentacion de passenger
3334[ Passenger Documentation] ( https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/nginx/oss/jessie/install_passenger.html )
3435
3536``` bash
@@ -43,3 +44,44 @@ apt-get update
4344
4445apt-get install -y nginx-extras passenger
4546```
47+
48+ ## Deployar una app Rails.
49+
50+ Vamos a clonar una app rails de ejemplo desde el repo de phusion.
51+
52+
53+ ``` bash
54+ cd /var/www
55+ git clone https://github.com/phusion/passenger-ruby-rails-demo.git
56+ cd passenger-ruby-rails-demo
57+ bundle install --deployment --without development test
58+
59+ ```
60+
61+ Ahora tenemos que crear la secret key:
62+
63+
64+ ``` bash
65+
66+ bundle exec rake secret
67+ ````
68+
69+ Editar config/secrets.yml y poner la clave generada:
70+
71+ ```
72+ production:
73+ secret_key_base: the value that you copied from 'rake secret'
74+
75+ ```
76+
77+ Ademas tenemos que poner los permisos correctos en algunos archivos de configuracion:
78+ ```
79+ chmod 700 config db
80+ chmod 600 config/database.yml config/secrets.yml
81+ ```
82+
83+ Luego precompilamos los assets y corremos las migraciones:
84+
85+ ```
86+ bundle exec rake assets: precompile db: migrate RAILS_ENV=production
87+ ```
You can’t perform that action at this time.
0 commit comments