-
Notifications
You must be signed in to change notification settings - Fork 74
Development
ActiveWorkflow is built using Ruby and is a Ruby on Rails app.
You can install all the app dependencies with:
gem install bundler
bundleDiagrams are rendered using the dot tool from Graphviz. On a Mac you can install Graphviz with:
brew install graphvizActiveWorkflow uses PostgreSQL to store its data. If you have PostgreSQL set up all you need to do is to set the environment variable DATABASE_URL. For example:
export DATABASE_URL=postgres://mydbusername:password@localhost:5432/dbnameYou can also re-use the PostgreSQL docker image preconfigured for use with ActiveWorkflow when running it with docker-compose. You can start it with
docker-compose up postgresand stop withCtrl+Canddocker-compose downafterwards.
Before running ActiveWorkflow you have to prepare the database with:
#bundle exec rake db:create # Optional, if the database doesn't exit.
bundle exec rake db:migrate
bundle exec rake db:seedYou can start the instance by running:
make startThis starts the ActiveWorkflow instance on a local address localhost:3000 with default username "admin" and password "password".
The local instance uses the configuration stored in a .env file. You could
tweak it or use it as guidance when configuring your deployment target.
Tests can be run with make test.
You can test ActiveWorkflow using docker locally. To build docker image from the source code and run it (with a PostgreSQL database in a separate container):
docker-compose -f docker/docker-compose.local.yml upThis starts a ActiveWorkflow instance accessible at http://localhost:3000 with default login "admin" and password
"password". This builds docker
You can stop the containers with:
docker-compose -f docker/docker-compose.local.yml down