Skip to content

Instantly share code, notes, and snippets.

@ezr-ondrej
Last active May 28, 2019 11:53
Show Gist options
  • Save ezr-ondrej/1f8fb4ab2618c1b50298ea043ad19643 to your computer and use it in GitHub Desktop.
Save ezr-ondrej/1f8fb4ab2618c1b50298ea043ad19643 to your computer and use it in GitHub Desktop.
dynflow on ActiveJob example
# (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