Install RVM
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled --ruby=1.9.3
Create a folder store files.
mkdir Spaceapps
Navigate into the directory.
cd Spaceapps
Clone repository using
git clone https://github.com/spaceappsnyc/spaceappsnyc.github.com.git .
Switch to and track Dev branch
git checkout -t origin/dev
Update resources
bundle install
Grab the latest and greatest
git pull origin dev
To start local server (open a new tab in terminal cmd+t)
jekyll server
Watch the SASS file for changes (open a new tab in terminal cmd+t)
sass --watch stylesheets/sass:stylesheets/compiled
The local site can be found at
http://localhost:4000/
-
Make sure your using the dev branch
git checkout dev
-
Pull the latest and greatest
git pull origin dev
-
Profit. You'll have to start up the Jekyll server and watch the SASS files (these commands happen in separate terminal tabs cmd+t).
jekyll --server
sass --watch stylesheets/sass:stylesheets/compiled
-
The CSS file you'll be updating is located in:
stylesheets> sass > styles.scss
****As a note you may need save a "main file" like about.html, faq.html, etc... before your changes are updated locally.
-
Check if you have unstaged changes:
git status
-
Add all files
git add .
-
Comment on updates
git commit -m "make change notes"
-
Rebase local dev environment so Origin is up to date
git pull --rebase origin dev
-
Push changes
git push origin dev
Now, we'll push to production
-
Change to Master branch
git checkout master
-
Pull latest and greatest Master
git pull origin master
-
merge local dev into local master
git merge dev
-
Commit new changes to master
git add .
-
Make comments to updates
git commit -m "merged dev into master branch"
-
Rebase local master into origin/master
git pull --rebase origin master
-
Push updates to origin/master (this makes changes live)
git push origin master