usar puertos altos para no tener conflictos inesperados

This commit is contained in:
f 2020-11-12 16:46:51 -03:00
parent 0cd2c896c1
commit 5ea8e57f2d

View file

@ -17,15 +17,15 @@ build: ## Compilar el sitio
serve: /etc/hosts ## Servidor de prueba serve: /etc/hosts ## Servidor de prueba
@echo "Iniciando servidor web" @echo "Iniciando servidor web"
@if ! ss -lnp | grep -q :8080 ; then nghttpd -d _site/ 8080 ../sutty.local/domain/sutty.local.{key,crt} & echo $$! > /tmp/nghttpd.pid ; fi @if ! ss -lnp | grep -q :65000 ; then nghttpd -d _site/ 65000 ../sutty.local/domain/sutty.local.{key,crt} & echo $$! > /tmp/nghttpd.pid ; fi
@if ! ss -lnp | grep -q :4000 ; then nghttpx -b "127.0.0.1,9095;/assets/js/:/sockjs-node/" -b "$(domain),8080;/;proto=h2;tls" -f "0.0.0.0,4000" -L FATAL --no-ocsp ../sutty.local/domain/sutty.local.{key,crt} & echo $$! > /tmp/nghttpx.pid ; fi @if ! ss -lnp | grep -q :4000 ; then nghttpx -b "127.0.0.1,65001;/assets/js/:/sockjs-node/" -b "$(domain),65000;/;proto=h2;tls" -f "0.0.0.0,4000" -L FATAL --no-ocsp ../sutty.local/domain/sutty.local.{key,crt} & echo $$! > /tmp/nghttpx.pid ; fi
kill-servers: /tmp/nghttpd.pid /tmp/nghttpx.pid /tmp/webpack.pid ## Cerrar el servidor kill-servers: /tmp/nghttpd.pid /tmp/nghttpx.pid /tmp/webpack.pid ## Cerrar el servidor
webpack: assets/js/pack.js ## Compilar JS webpack: assets/js/pack.js ## Compilar JS
webpack-dev-server: ## Servidor de prueba de Webpack webpack-dev-server: ## Servidor de prueba de Webpack
./node_modules/.bin/webpack-dev-server --public $(domain):4000 --host 127.0.0.1 --port 9095 & echo $$! > /tmp/webpack.pid ./node_modules/.bin/webpack-dev-server --public $(domain):4000 --host 127.0.0.1 --port 65001 & echo $$! > /tmp/webpack.pid
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt # Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
# node_modules/font-awesome/scss/_variables.scss # node_modules/font-awesome/scss/_variables.scss