The instructions on this page will guide you in setting up a local development environment in Linux.
- Open a Terminal and use a package manager to install ruby. For example, on Ubuntu or Debian use
sudo apt-get install ruby ruby-dev
or on Arch Linuxsudo pacman -S ruby ruby-dev
. - To make gems executable type
(ruby -e 'print Gem.user_dir')
thenPATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
and lastexport GEM_HOME=$HOME/.gem
.(more info athttps://wiki.archlinux.org/index.php/ruby#Setup
)
- 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 typels
to see ifGemfile
can be seen. - Type
bundle install
to 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
.