Commits pushed to the master branch are automatically deployed to https://api.stratusprint.com.
Commits pushed to the dev branch are automatically deployed to https://dev.api.stratusprint.com.
-
If you have not done so already, install both Vagrant and VirtualBox.
-
Clone this repo:
git clone git@github.com:StratusPrint/API.git
-
Start the virtual machine:
vagrant up
-
SSH in to the virtual machine:
vagrant ssh
-
Access the the API locally at http://localhost:8081/
Background jobs created by the API are configured to run on Sidekiq. Sidekiq can be started by running:
bundle exec sidekiq
inside the Rails application directory.