Last active
May 28, 2019 11:53
-
-
Save ezr-ondrej/1f8fb4ab2618c1b50298ea043ad19643 to your computer and use it in GitHub Desktop.
dynflow on ActiveJob example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (re)create DB | |
DB=dynflow_example; dropdb -U postgres "$DB"; createdb -U postgres "$DB" | |
# install staff | |
sudo yum install redis | |
sudo systemctl enable --now redis | |
# set DB connection - expect dynflow user with dynflow password | |
export DB_CONN_STRING='postgres://dynflow:dynflow@/dynflow_example' | |
# start dynflow with web dashboard | |
bundle exec ruby ./examples/remote_executor.rb observer | |
# running dynflow dashboard on http://localhost:4567/dynflow | |
# running sidekiq dashboard on http://localhost:4567/sidekiq/ | |
# second terminal - start sidekiq runner | |
sidekiq -r ./examples/remote_executor.rb -C ./examples/sidekiq.yml -q dynflow_orchestrator | |
# run the example | |
bundle exec ruby ./examples/remote_executor.rb client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment