Code for helloalinato.com
This project was bootstrapped with Create React App.
Deployed via Github Pages and gh-pages npm package.
Use yarn! We love yarn.
[Updated 08-14-2020]
Make sure Source branch is set to gh-pages and not master
develop is our safe and stable branch with all the code.
- Create
featurebranch offdevelop- i.e.
shopbranch
- i.e.
- Do development work on
featurebranch - When finished adding new changes, on
featurebranch:git add .git commit -m "added cool new feature"git push originfeature`
- Create Pull Request to merge
featureintodevelop
Now we don't do anything with develop! It's the safe branch with most current code.
- On
featurebranch:yarn run deploy- This will create a
/buildfolder with static files and agh-pagesbranch. It will also push that up to Github automatically -- Nothing for me to do except runyarn run deploy!
- This will create a
- On Github repo > Settings:
- Scroll down to "Github Pages" section
- Make sure
Sourceisgh-pagesat /root folder - Update custom domain to
helloalinato.comand hit Save- It resets to
github.ioeach time for some reason...
- It resets to
A while ago, Github Pages only allow you to develop and deploy from master branch only. When deployment happens, it only cares about static files. So whenever something is pushed to master branch, it automatically strips everything that is not static files (i.e. package.json, README.md...)
Then, when you pull from master, or branch off master, all your work is gone. Why? I do not know.
Whatever you do, DO NOT:
- DO NOT pull from
master - DO NOT create
featurebranch offmaster - Basically, NOTHING happens on
masterand it only has static files. So if you pull frommasterintodeveloporfeature, all your hard work will be gone!