Skip to content

Commit

Permalink
Add Procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanVqz committed Dec 4, 2022
1 parent 9a572d0 commit a68d732
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite: bin/vite build
web: bundle exec middleman server
2 changes: 2 additions & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite: bin/vite dev
web: bundle exec middleman server
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
6 changes: 0 additions & 6 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"scripts": {
"dev": "vite dev",
"build": "vite build"
},
"devDependencies": {
"sass": "^1.56.1",
"vite": "^3.2.4",
Expand Down

0 comments on commit a68d732

Please sign in to comment.