Skip to content

lbain/lucybain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucybain.com is my personal website. The domain is registered with iwantmyname, and hosting is with netlify.

How to run it locally

The website is statically generated with Middleman, which uses Ruby.

Things you'll need:

  • Ruby - check the .ruby-version file for which version.
  • Bundler to get the rest of the gems
  • Node

Recommended install:

  1. Get your .bash_profile setup 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%   
  2. Install Xcode command line tools: xcode-select --install

  3. Install Homebrew

    • Make sure you're on a recent version
    • Run brew doctor to fix up any problems
  4. Install rbenv

    • Check your rbenv installed correctly with rbenv-doctor. Note that this exact command might be out of date, but searching on rbenv-doctor will likely be successful.
    curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
  5. Install relevant ruby version - rbenv install {info from .ruby-version}

  6. 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}
  7. Check gems will install with rbenv - gem env home

    • It should start with something like /Users/lucybain/.rbenv/versions
  8. Update all gems - bundle update

    • Yes, I can just do bundle install but since I probably haven't run this in a while I should do an update.
  9. Install nvm

  10. Install node with nvm install node

Usage

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 the build files are thrown away after each build.
  • Commit all changes, but particularly those in build since this is the rendered site.
  • When you're ready to deploy, git push and netlify will automatically pick up the changes in a few minutes.

Contributing

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 :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published