The code for the Enspiral Website. Production Site and Staging Site
Normal Rails way. Create database and run rails server.
Staging is volatile! Only merge changes in from other branches. At any time staging can be reset to what is in master if it gets too messy.
Code in master may not be on production but it is considered tested and ready for production.
The branching system we are using for the Enspiral Website is:
- Use feature, bug or todo branches that are branched off of the master branch (ex. “feature/add_awesomeness”).
- Merge your branch into staging for testing.
- If test pass and QA is good rebase your branch from master, resolve any conflicts, then merge your branch into master.
- If deploying merge master into the production branch
If you are making a very small change you feel is safe to test locally then you can make the change right on the master branch. Please, make sure it is only a very minor (view/stylesheet) change.
If the certificate expires then generate a new one in config/xero
with the following code and then upload the publickey.cer to developer.xero.com and generate the new keys
openssl genrsa -out privatekey.pem 1024
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer
This information is removed from this repo so that other developers can access this.
Please rebase, not merge, any branches created off of the old repository history which holds the information.
Both production and staging are using ruby 2.1.8
The bootstrap is pretty legacy at this point. Here are the docs: http://getbootstrap.com/2.3.2/base-css.html
If you have any questions about the my.enspiral portion, you can email Charlie Ablett