lucybain.com is my personal website. The domain is registered with iwantmyname, and hosting is with netlify.
The website is statically generated with Middleman, which uses Ruby.
Things you'll need:
- Ruby - check the
.ruby-versionfile for which version. - Bundler to get the rest of the gems
- Node
Recommended install:
-
Get your
.bash_profilesetup and working. It should be in your Dropbox already. You might need to add this to~/.zshrc(should probably look into this a bit more...)if [ -f ~/.bash_profile ]; then . ~/.bash_profile fi%
-
Install Xcode command line tools:
xcode-select --install -
Install Homebrew
- Make sure you're on a recent version
- Run
brew doctorto fix up any problems
-
Install rbenv
- Check your rbenv installed correctly with
rbenv-doctor. Note that this exact command might be out of date, but searching onrbenv-doctorwill likely be successful.
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash - Check your rbenv installed correctly with
-
Install relevant ruby version -
rbenv install {info from .ruby-version} -
Use that ruby version -
rbenv local {info from .ruby-version}- I'm not sure why, but I also needed to set this for the global version with
rbenv global {info from .ruby-version}
- I'm not sure why, but I also needed to set this for the global version with
-
Check gems will install with rbenv -
gem env home- It should start with something like
/Users/lucybain/.rbenv/versions
- It should start with something like
-
Update all gems -
bundle update- Yes, I can just do
bundle installbut since I probably haven't run this in a while I should do an update.
- Yes, I can just do
-
Install nvm
-
Install node with
nvm install node
middleman server # runs the server
middleman s # runs the server
middleman build # builds the static files
middleman b # builds the static files- Make changes to the files in
source; all thebuildfiles are thrown away after each build. - Commit all changes, but particularly those in
buildsince this is the rendered site. - When you're ready to deploy,
git pushand netlify will automatically pick up the changes in a few minutes.
Pull requests fixing typos or other errors are welcome! Please update the file in the source directory, and optionally include the change to the build file as well - not reqiured, I can easily update these files locally :)