Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,25 @@ task :deploy do
end
end
```

# Deploy plain HTML websites
```
require 'mina/git'
require 'mina/deploy'
...
desc "Deploys the current version to the server."
task :deploy do
deploy do
invoke :'git:clone'
invoke :'deploy:cleanup'

on :launch do
in_path(fetch(:current_path)) do
command %{npm install}
end
end
end
end
```
-------------------------------
\* *feel free to add your own recipes*