Files
grecia/docs/es/installation/vagrant.md
Javi Martín 819485eb80 Re-add and apply MDL rule MD040
We were following it about half of the time and we even added it to our
former `.mdlrc` file. However, for some reason, MDL doesn't detect this
rule when specified in the `.mdlrc` file, so we didn't notice we weren't
following it in many cases.

Now that we're using a style file to configure MDL, we can enable this
rule again and apply it, since now MDL correctly includes it in its
report.
2024-06-21 15:57:52 +02:00

46 lines
1.0 KiB
Markdown

# Vagrant
Instale [Vagrant](https://www.vagrantup.com/) y configure una máquina virtual con [Linux](prerequisites.md)
Vagrant es compatible para [Debian](/es/installation/debian.md) y [Ubuntu](/es/installation/ubuntu.md).
## Browser configuration
Para acceder a la aplicación a través del navegador en la url `localhost:3000` debe enrutar el puerto de la aplicación y ejectuar el servidor de la aplicación con la opción `-b`:
## Enrutar el puerto de la aplicación
Abra el archivo de configuración de Vagrant:
```bash
nano Vagranfile
```
Encuentre esta línea:
```ruby
# config.vm.network "forwarded_port", guest: 80, host: 8080
```
Cámbiela por esta:
```ruby
config.vm.network "forwarded_port", guest: 3000, host: 3000
```
Recargue la máquina virtual:
```bash
vagrant reload
```
## Ejecutar el servidor
En su máquina virtual, debe ejecutar la aplicación enlanzándola a su IP local:
```bash
bin/rails s -b 0.0.0.0
```
Ahora debería ver la aplicación desde el navegardor en la url `localhost:3000` :tada: