Run localhost with premium domain

1) Correr en la consola

sudo nano /etc/hosts

2) Ponemos password

En seguida se abrirá lo siguiente:

3) Poner la siguiente línea de code:

127.0.0.1        mnbkitchen.gograb.io
## 127.0.0.1     mnbkitchen.gograb.io
## 127.0.0.1     thewagyubar.gograb.io
127.0.0.1        thewagyubar.gograb.io
127.0.0.1         meatnbone.gograb.io
## 127.0.0.1      meatnbone.gograb.io

O cualquier dominio que queramos utilizar para las pruebas.

4) Guardar usando (control O) y enter

5) Cerrar (control X)

6) Correr como en ambiente local:

ng serve --host meatnbone.gograb.io

7) Ingresar en el browser de la siguiente manera: http://meatnbone.gograb.io:4200/

En caso de tener problemas, intentar lo siguiente:

--disable-host-check
ng serve --host meatnbone.gograb.io --disable-host-check
ng serve --host mnbkitchen.gograb.io --disable-host-check
ng serve --host thewagyubar.gograb.io --disable-host-check

Para ponerlo:

127.0.0.1       meatnbone.gograb.io

Para quitarlo:

## 127.0.0.1       meatnbone.gograb.io

Last updated

Was this helpful?