Remove step to install the bundler gem
Bundler is included in Ruby since Ruby 2.6, so we don't have to
manually install the gem since commit 8e64d6c1a.
This commit is contained in:
@@ -24,19 +24,13 @@ ruby -v
|
|||||||
=> # (it should be the same as the version in the .ruby-version file)
|
=> # (it should be the same as the version in the .ruby-version file)
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Install [Bundler](http://bundler.io/):
|
4. Install the required gems using Bundler:
|
||||||
|
|
||||||
```bash
|
|
||||||
gem install bundler --version 1.17.1
|
|
||||||
```
|
|
||||||
|
|
||||||
5. Install the required gems using Bundler:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle
|
bundle
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Copy the environment example configuration files inside new readable ones:
|
5. Copy the environment example configuration files inside new readable ones:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp config/database.yml.example config/database.yml
|
cp config/database.yml.example config/database.yml
|
||||||
@@ -45,7 +39,7 @@ cp config/secrets.yml.example config/secrets.yml
|
|||||||
|
|
||||||
And setup database credentials with your `consul` user in your new `database.yml` file.
|
And setup database credentials with your `consul` user in your new `database.yml` file.
|
||||||
|
|
||||||
7. Run the following [Rake tasks](https://github.com/ruby/rake) to create and fill your local database with the minimum data needed to run the application:
|
6. Run the following [Rake tasks](https://github.com/ruby/rake) to create and fill your local database with the minimum data needed to run the application:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rake db:create
|
bin/rake db:create
|
||||||
@@ -54,13 +48,13 @@ bin/rake db:dev_seed
|
|||||||
bin/rake db:test:prepare
|
bin/rake db:test:prepare
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Check everything is fine by running the test suite (beware it might take more than an hour):
|
7. Check everything is fine by running the test suite (beware it might take more than an hour):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rspec
|
bin/rspec
|
||||||
```
|
```
|
||||||
|
|
||||||
9. Now you have all set, run the application:
|
8. Now you have all set, run the application:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rails s
|
bin/rails s
|
||||||
|
|||||||
@@ -24,19 +24,13 @@ ruby -v
|
|||||||
=> # (debería aparecer la versión mencionada en el fichero .ruby-version)
|
=> # (debería aparecer la versión mencionada en el fichero .ruby-version)
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Instala [Bundler](http://bundler.io/)
|
4. Instala las gemas requeridas usando Bundler:
|
||||||
|
|
||||||
```bash
|
|
||||||
gem install bundler --version 1.17.1
|
|
||||||
```
|
|
||||||
|
|
||||||
5. Instala las gemas requeridas usando Bundler:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle
|
bundle
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Copia los archivos de configuración de ejemplo del entorno dentro de unos nuevos válidos:
|
5. Copia los archivos de configuración de ejemplo del entorno dentro de unos nuevos válidos:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp config/database.yml.example config/database.yml
|
cp config/database.yml.example config/database.yml
|
||||||
@@ -45,7 +39,7 @@ cp config/secrets.yml.example config/secrets.yml
|
|||||||
|
|
||||||
Y configura los de tu usuario de base de datos `consul` en `database.yml`
|
Y configura los de tu usuario de base de datos `consul` en `database.yml`
|
||||||
|
|
||||||
7. Ejecuta las siguientes [tareas Rake](https://github.com/ruby/rake) para crear y rellenar tu base de datos local con el mínimo de información necesaria para que la aplicación funcione correctamente:
|
6. Ejecuta las siguientes [tareas Rake](https://github.com/ruby/rake) para crear y rellenar tu base de datos local con el mínimo de información necesaria para que la aplicación funcione correctamente:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rake db:create
|
bin/rake db:create
|
||||||
@@ -54,13 +48,13 @@ bin/rake db:dev_seed
|
|||||||
bin/rake db:test:prepare
|
bin/rake db:test:prepare
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora):
|
7. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rspec
|
bin/rspec
|
||||||
```
|
```
|
||||||
|
|
||||||
9. Ahora que ya está todo listo puedes ejecutar la aplicación:
|
8. Ahora que ya está todo listo puedes ejecutar la aplicación:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rails s
|
bin/rails s
|
||||||
|
|||||||
@@ -20,12 +20,6 @@ OS X ya viene con una versión preinstalada de ruby, pero es bastante vieja y en
|
|||||||
|
|
||||||
[github.com/rbenv/rbenv](https://github.com/rbenv/rbenv)
|
[github.com/rbenv/rbenv](https://github.com/rbenv/rbenv)
|
||||||
|
|
||||||
## Bundler
|
|
||||||
|
|
||||||
```bash
|
|
||||||
gem install bundler
|
|
||||||
```
|
|
||||||
|
|
||||||
## Node.js
|
## Node.js
|
||||||
|
|
||||||
Para compilar los archivos estáticos (JS, CSS, imágenes, etc.), es necesario un _runtime_ de JavaScript. OS X viene con un _runtime_ integrado llamado `Apple JavaScriptCore` pero Node.js es la opción recomendada.
|
Para compilar los archivos estáticos (JS, CSS, imágenes, etc.), es necesario un _runtime_ de JavaScript. OS X viene con un _runtime_ integrado llamado `Apple JavaScriptCore` pero Node.js es la opción recomendada.
|
||||||
|
|||||||
Reference in New Issue
Block a user