cssu / trackary

Inventory & Point-of-Sale for the CSSU
https://trackary.cssu.ca
1 stars 0 forks source link

trackary

Inventory tracking & point-of-sale for the CSSU

Travis CI Code Climate Test Coverage

Overview

This is a Ruby on Rails app, consisting of four main components:

Useful links

Development

You need the following prerequisutes:

The rest of the dependencies can be installed by running:

cd trackary/
bundle install

Start a local test server by running:

rails server

Finally, run Guard in the background to continuously run tests:

guard

Deploying to staging

We're using Dokku to deploy the website to a DigitalOcean server.

To add your public key to the server, send it to the sshcommand command on the server. Assuming your public key is in ~/.ssh/id_rsa.pub:

cat ~/.ssh/id_rsa.pub | ssh root@trackary.com "sshcommand acl-add dokku <name>"

(Where <name> is any label you want for the key, probably your name)

Once your public ssh key has been added to Dokku, add the remote:

git remote add staging dokku@trackary.com:staging

Then, whenever you want to deploy, simply:

git push staging master

The site is live at http://staging.trackary.com

On the server, PostgreSQL is used as the database. See dokku-pg-plugin.

Deploying to production

Follow the same instructions as above, but use the following remote:

git remote add production dokku@trackary.com:trackary.com

The site is live at https://trackary.com