/opensandiego.github.io

Open San Diego, Code for America Brigade in San Diego

Primary LanguageCSSMIT LicenseMIT

Open San Diego Website

Built with:

Setting Up a Local Dev Environment

Gitpod

  • install node
  • install ruby
  • run the following commands in your terminal:

gem install jekyll bundler

bundle install

npm install

Running Locally and Building CSS

To run the website on your local machine:

  • run this command in your terminal: npm start
  • open a browser and navigate to http://127.0.0.1:4000/
  • on gitpod say yes to expose the ports when prompted

Note: the CSS needs to be built and committed at this point, until we figure out a way automatically include the bootstrap dependency

If you need to make styling changes, you should edit the css/main.scss file and then build the css with the following command:

npm run build

You can run from docker using

docker-compose up

To rebuild the SCSS, you need to do in a different terminal:

docker-compose exec jekyll npm run build