From 97c59afb0eb8758a1b98fd1dd48a0007f9796125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 6 Aug 2024 13:55:57 +0200 Subject: [PATCH] Update instructions to install Node.js We're using a specific version of Node.js since commit 55ed40e18. --- docs/en/installation/local_installation.md | 19 +++++++++++++------ docs/es/installation/local_installation.md | 19 +++++++++++++------ 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/docs/en/installation/local_installation.md b/docs/en/installation/local_installation.md index ea56a5a89..c05aef1aa 100644 --- a/docs/en/installation/local_installation.md +++ b/docs/en/installation/local_installation.md @@ -24,13 +24,20 @@ ruby -v => # (it should be the same as the version in the .ruby-version file) ``` -4. Copy the example database configuration file: +4. Install the Node.js version we need with your Node.js version manager. If you're using NVM: + +```bash +nvm install `cat .node-version` +nvm use `cat .node-version` +``` + +5. Copy the example database configuration file: ```bash cp config/database.yml.example config/database.yml ``` -5. Setup database credentials with your `consul` user in your new `database.yml` file +6. Setup database credentials with your `consul` user in your new `database.yml` file ```bash nano config/database.yml @@ -38,25 +45,25 @@ nano config/database.yml And edit the lines containing `username:` and `password:`, adding your credentials. -6. Install the project dependencies and create the database: +7. Install the project dependencies and create the database: ```bash bin/setup ``` -7. Run the following [Rake task](https://github.com/ruby/rake) to fill your local database with development data: +8. Run the following [Rake task](https://github.com/ruby/rake) to fill your local database with development data: ```bash bin/rake db:dev_seed ``` -8. Check everything is fine by running the test suite (beware it might take more than an hour): +9. Check everything is fine by running the test suite (beware it might take more than an hour): ```bash bin/rspec ``` -9. Now you have all set, run the application: +10. Now you have all set, run the application: ```bash bin/rails s diff --git a/docs/es/installation/local_installation.md b/docs/es/installation/local_installation.md index 6b072ddf2..4ee3d2093 100644 --- a/docs/es/installation/local_installation.md +++ b/docs/es/installation/local_installation.md @@ -24,13 +24,20 @@ ruby -v => # (debería aparecer la versión mencionada en el fichero .ruby-version) ``` -4. Copia el archivo de ejemplo de configuración de base de datos: +4. Instala la versión de Node.js necesaria con tu gestor de versiones de Node.js. Si usas NVM: + +```bash +nvm install `cat .node-version` +nvm use `cat .node-version` +``` + +5. Copia el archivo de ejemplo de configuración de base de datos: ```bash cp config/database.yml.example config/database.yml ``` -5. Configura las credenciales de base de datos con tu usuario `consul` en tu nuevo fichero `database.yml` +6. Configura las credenciales de base de datos con tu usuario `consul` en tu nuevo fichero `database.yml` ```bash nano config/database.yml @@ -38,25 +45,25 @@ nano config/database.yml Y edita las líneas que contienen `username:` y `password:`, añadiendo tus credenciales. -6. Instala las dependencias del proyecto y crea la base de datos: +7. Instala las dependencias del proyecto y crea la base de datos: ```bash bin/setup ``` -7. Ejecuta la siguiente [tarea Rake](https://github.com/ruby/rake) para rellenar tu base de datos local con datos de desarrollo: +8. Ejecuta la siguiente [tarea Rake](https://github.com/ruby/rake) para rellenar tu base de datos local con datos de desarrollo: ```bash bin/rake db:dev_seed ``` -8. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora): +9. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que podría tardar más de una hora): ```bash bin/rspec ``` -9. Ahora que ya está todo listo puedes ejecutar la aplicación: +10. Ahora que ya está todo listo puedes ejecutar la aplicación: ```bash bin/rails s