Lamassu admin server. First part of Lamassu stack you need to install.
git clone email@example.com:lamassu/lamassu-admin.gitcd lamassu-adminnpm install
You also need a Postgres running. Postgres is required for storing configuration of the remote server. Install Postgres with your package manager of choice, then:
sudo su - postgrescreateuser --superuser lamassucreatedb -U lamassu lamassu
Then you need SQL scripts to seed initial configs. They are under
You can bootstrap your database by running:
psql lamassu lamassu < database/lamassu.sql
You'll be able to configure your stack when you start the server for the first time.
Then, open it.
are deployable to Heroku.
First, you need to get a Heroku account and install the Heroku toolkit.
The easy way
deploy-all.sh is an easy installation and deployment script. You can run it
standalone, without cloning
lamassu-admin. It'll clone both repositories to
your current working directory and deploy them to Heroku:
mkdir lamassucurl https://raw.github.com/lamassu/lamassu-admin/master/deploy-all.sh > deploy-all.shchmod +x deploy-all.sh./deploy-all.sh
You can deploy updates to your applications by rerunning
A bit harder way
You can also clone and deploy each app individually. To do that, clone both
git clone https://github.com/lamassu/lamassu-admin.gitgit clone https://github.com/lamassu/lamassu-server.git
Visit the deployed application to configure your Lamassu ATM. Make sure to input all required API keys.
Next, to deploy
lamassu-server you need to grab
DATABASE_URL for the Postgres
database our deployment script created.
db=$(heroku config:get DATABASE_URL)
Then, go to
lamassu-server and deploy it:
You need to pass
DATABASE_URL to it since both
use the same database.
Both applications should be deployed and running.