From 6434d130be6a577b266e372c4dcf1e0c12ce49ba Mon Sep 17 00:00:00 2001 From: f Date: Thu, 6 Feb 2020 13:18:10 -0300 Subject: [PATCH] desarrollar con https, ver https://0xacab.org/sutty/sutty.local --- .gitignore | 3 +++ Makefile | 3 +++ config/webpacker.yml | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e2387c8..8d7772c 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ yarn-debug.log* .yarn-integrity /vendor + +*.key +*.crt diff --git a/Makefile b/Makefile index 84006b5..45fbf66 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) root_dir := $(patsubst %/,%,$(dir $(mkfile_path))) include $(root_dir)/.env +serve: + bundle exec rails s -b "ssl://0.0.0.0:3000?key=config/sutty.local.key&cert=config/sutty.local.crt" + # Limpiar los archivos de testeo clean: rm -rf _sites/test-* _deploy/test-* diff --git a/config/webpacker.yml b/config/webpacker.yml index 46ed57d..ec2129c 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -57,10 +57,10 @@ development: # Reference: https://webpack.js.org/configuration/dev-server/ dev_server: - https: false - host: localhost + https: true + host: sutty.local port: 3035 - public: localhost:3035 + public: sutty.local:3035 hmr: false # Inline should be set to true if using HMR inline: true