This is a base Middleman application. This sets all of the defaults that I'll generally set when building a new application on Middleman. Be sure to read all of the documentation to become familiar with Middleman before using this base setup.
gem install bundler
bundle install
Next, install Bower for JavaScript dependency management.
npm install -g bower
bower install
You run the application by starting the Middleman server:
middleman s
To build the static files:
middleman build
- Create a new file
Rakefile
at the root of your project, and paste the file from https://github.com/drewbarontini/baseman-deploy/blob/master/github.rake - Replace the
REPO_URL
with your repositorie's URL. This assumes that you have agh-pages
branch that is serving up your site. - You can now deploy by running
rake deploy
from your project's root.
Requirement: You'll need to have SSH access to your server.
- Create a new file
Rakefile
at the root of your project, and paste the file from https://github.com/drewbarontini/baseman-deploy/blob/master/ftp.rake - Replace the
SSH_LOGIN_PATH
with your own. - You can now deploy by running
rake deploy
from your project's root.
Note: There is a version for staging as well.
Another option is the middleman-deploy extension, which provides more deployment methods for rsync, ftp, sftp or git. Be sure to check it out!
Big hat tip to Arron Mabrey for the deploy scripts :)