From 7da8ed11d2e10e03bb980f11e475f3e12c48e107 Mon Sep 17 00:00:00 2001 From: Juan Vasquez Date: Sat, 3 Dec 2022 22:19:31 -0600 Subject: [PATCH] Add Procfile --- Procfile | 2 ++ Procfile.dev | 2 ++ README.md | 30 ++++++++++++++++++------------ config.rb | 6 ------ 4 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 Procfile create mode 100644 Procfile.dev diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..0a26e52 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +vite: bin/vite build +web: bundle exec middleman server diff --git a/Procfile.dev b/Procfile.dev new file mode 100644 index 0000000..4f8466c --- /dev/null +++ b/Procfile.dev @@ -0,0 +1,2 @@ +vite: bin/vite dev +web: bundle exec middleman server diff --git a/README.md b/README.md index 03ab9ce..527986d 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,30 @@ This website is powered by [Middleman](http://middlemanapp.com). - ## How to build the website? -* Clone the repository -* Change to **source** branch -``` +- Clone the repository +- Change to **source** branch + +```bash git checkout source ``` -* Install all the dependencies -``` + +- Install all the dependencies + +```bash bundle install ``` -* Run the server -``` -middleman server -``` -* The website is in http://localhost:4567 -* To deploy the site: + +- Run the server and visit http://localhost:4567 + +```bash +gem install foreman +foreman start -f Procfile.dev ``` + +- To deploy the site: + +```bash middleman deploy ``` diff --git a/config.rb b/config.rb index b0cf165..79302ca 100644 --- a/config.rb +++ b/config.rb @@ -12,12 +12,6 @@ end helpers VitePadrino::TagHelpers -activate :external_pipeline, - name: :vite, - command: build? ? "yarn run build" : "yarn run dev", - source: ".tmp/dist", - latency: 1 - activate :blog do |blog| # This will add a prefix to all links, template references and source paths # blog.prefix = "blog"