Inventory tracking & point-of-sale for the CSSU
This is a Ruby on Rails app, consisting of four main components:
You need the following prerequisutes:
Ruby 2.1.2 (I recommend rbenv for managing ruby versions)
Bundler:
gem install bundler
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
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.
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