Flynn Cheat Sheet

From WikiOD

Here is the cheatsheat of Flynn and basic guide on how to use Flynn

General workflow[edit | edit source]

  • Start a flynn cluster (on amazon or vagrant)
  • flynn cluster add to add that cluster
  • flynn create NAME in your app
  • git push flynn master to deploy

Creating a cluster (AWS)[edit | edit source]

flynn install  # (provisions AWS EC2 stuff)
flynn key add  # (adds your pubkey to AWS)

What it does[edit | edit source]

  • This creates
  • Dashboard in
  • Use flynn -a dashboard env get LOGIN_TOKEN to get login token
  • Apps live in

Using a flynn cluster[edit | edit source]

Managed in ~/.flynnrc: {: .-setup}

flynn cluster
flynn cluster add [-g githost] [-p pin] NAME URL KEY
flynn cluster remove NAME
flynn cluster default NAME # use this current

Setting up a new app[edit | edit source]

cd ~/project
flynn create example # adds the `flynn` remote
flynn route # prints http routes
git push flynn master

Commands[edit | edit source]

Environment vars[edit | edit source]

flynn env
flynn env set FOO=bar BAZ=foobar
flynn env unset FOO

Scale[edit | edit source]

flynn ps
flynn scale web=3

Logs[edit | edit source]

flynn log
flynn log flynn-d55c7a...

Running commands[edit | edit source]

flynn run rake db:migrate

Manage routes[edit | edit source]

flynn route
flynn route add http
# then make a CNAME from to

More[edit | edit source]

flynn ps
flynn kill <job>

flynn meta
flynn meta set foo=baz

Also see[edit | edit source]