The instructions on this page will guide you in setting up a local development environment in MacOS.
- On OS X, open your Applications folder, then open the Utilities folder. Open the Terminal.
- Enter
xcode select --install.
- Enter
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"in the Terminal.
- Enter
brew install rubyin the Terminal. - To check if it is correctly installed, type
which gem. If you see thisusr/local/bin/gemall are installed correctly.
- In your Terminal enter
gem install jekyll bundler
- Fork this repository.
- Use git to clone your forked repository, i.e. git clone .
https://github.com/<your_username>/gci17.fossasia.org.git - Change directory to the local repository, i.e.
cd gci17.fossasia.org. Now typelsto see ifGemfilecan be seen. - Type
bundle installto install dependencies. - Type
bundle exec jekyll serve. You will see a Server address. - Now your server is up and running. To view gci17.fossasia.org page, go to
localhost:4000.