The MiddSafe Online Advocate is a tool for peers in need of support and information around sexual assault, stalking, dating violence, domestic violence, and other personal violations. When you’re ready to get started, you will be asked a series of questions in order to find resources that might feel right to you.
# clone your repo then open terminal in its folder
# install npm packages
npm install
# start local dev server
npm start
This will run browser sync server on http://localhost:3000
. (Browser sync will automatically set it to a different port if you have something running on it. Check what gets output in terminal for the exact URL.)
npm run deploy
- This will compile jekyll, process and minify CSS and JS, and compress images
- It will commit the contents of the
_site
directory to thesite
branch and push it to GitHub - IT has automated scripts to deploy the contents of the
site
branch on change. Your changes should now be live at its assigned domain.
If the above instructions don't work, you can manually deploy the project with these steps:
git clone [email protected]:middlebury/middsafe-online-advocate.git
cd middsafe-online-advocate
npm cache clear --force
rm package-lock.json
npm install
npm run deploy
cp -r _site ../
git stash
git checkout --track -b site origin/site
cp -r ../_site/* .
git add -u
git commit -m "Deploy changes for #ISSUE"
git push
git checkout master
git stash pop
git reset --hard