Remove leading whitespace
This commit is contained in:
committed by
voodoorai2000
parent
6646d4c924
commit
2ee4ff69e1
@@ -4,48 +4,48 @@ Before installing Consul and having it up and running make sure you all [prerequ
|
|||||||
|
|
||||||
1. First, clone the [Consul Github repository](https://github.com/consul/consul/):
|
1. First, clone the [Consul Github repository](https://github.com/consul/consul/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/consul/consul.git
|
git clone https://github.com/consul/consul.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Go to the project folder and install the gems stack using [Bundler](http://bundler.io/):
|
2. Go to the project folder and install the gems stack using [Bundler](http://bundler.io/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd consul
|
cd consul
|
||||||
bundle install
|
bundle install
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Copy the environment example configuration files inside new readable ones:
|
3. 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
|
||||||
cp config/secrets.yml.example config/secrets.yml
|
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.
|
||||||
|
|
||||||
4. Run the following [Rake tasks](https://github.com/ruby/rake) to create and fill your local database with the minimum data to run the application:
|
4. Run the following [Rake tasks](https://github.com/ruby/rake) to create and fill your local database with the minimum data to run the application:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/rake db:create
|
bin/rake db:create
|
||||||
bin/rake db:setup
|
bin/rake db:setup
|
||||||
bin/rake db:dev_seed
|
bin/rake db:dev_seed
|
||||||
RAILS_ENV=test bin/rake db:setup
|
RAILS_ENV=test bin/rake db:setup
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Check everything is fine by running the test suite (beware it takes some long minutes):
|
5. Check everything is fine by running the test suite (beware it takes some long minutes):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle exec rspec
|
bundle exec rspec
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Now you have all set, run the application:
|
6. Now you have all set, run the application:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rails s
|
rails s
|
||||||
```
|
```
|
||||||
|
|
||||||
Congratulations! Your local Consul application will be running now at `http://localhost:3000`.
|
Congratulations! Your local Consul application will be running now at `http://localhost:3000`.
|
||||||
|
|
||||||
In case you want to access the local application as admin, a default user verified and with admin permissions was created by the seed files with **username** `admin@consul.dev` and **password** `12345678`.
|
In case you want to access the local application as admin, a default user verified and with admin permissions was created by the seed files with **username** `admin@consul.dev` and **password** `12345678`.
|
||||||
|
|
||||||
|
|||||||
@@ -4,48 +4,48 @@ Antes de comenzar a instalar Consul, comprueba que tengas todos los [prerrequisi
|
|||||||
|
|
||||||
1. Primero, clona el [repositorio de Consul en Github](https://github.com/consul/consul/):
|
1. Primero, clona el [repositorio de Consul en Github](https://github.com/consul/consul/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/consul/consul.git
|
git clone https://github.com/consul/consul.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Ve a la carpeta del proyecto e instala las gemas requeridas usando [Bundler](http://bundler.io/):
|
2. Ve a la carpeta del proyecto e instala las gemas requeridas usando [Bundler](http://bundler.io/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd consul
|
cd consul
|
||||||
bundle install
|
bundle install
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Copia los archivos de configuración de ejemplo del entorno dentro de unos nuevos válidos:
|
3. 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
|
||||||
cp config/secrets.yml.example config/secrets.yml
|
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`
|
||||||
|
|
||||||
4. 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:
|
4. 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
|
||||||
bin/rake db:setup
|
bin/rake db:setup
|
||||||
bin/rake db:dev_seed
|
bin/rake db:dev_seed
|
||||||
RAILS_ENV=test bin/rake db:setup
|
RAILS_ENV=test bin/rake db:setup
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que tardará unos cuantos minutos):
|
5. Comprueba que todo funciona correctamente lanzando la suite de tests (ten en cuenta que tardará unos cuantos minutos):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle exec rspec
|
bundle exec rspec
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Ahora que ya está todo listo puedes ejecutar la aplicación:
|
6. Ahora que ya está todo listo puedes ejecutar la aplicación:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rails s
|
rails s
|
||||||
```
|
```
|
||||||
|
|
||||||
¡Felicidades! Tu aplicación Consul local estará corriendo en `http://localhost:3000`.
|
¡Felicidades! Tu aplicación Consul local estará corriendo en `http://localhost:3000`.
|
||||||
|
|
||||||
En caso de que quieras acceder a la aplicación local como usuario administrador existe un usuario por defecto verificado y con permisos con **nombre de usuario** `admin@consul.dev` y **contraseña** `12345678`.
|
En caso de que quieras acceder a la aplicación local como usuario administrador existe un usuario por defecto verificado y con permisos con **nombre de usuario** `admin@consul.dev` y **contraseña** `12345678`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user