Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Forked from lmars/commands.txt
Last active August 29, 2015 14:17
Show Gist options
  • Save jwaldrip/538b65fb091e4376a4b3 to your computer and use it in GitHub Desktop.
Save jwaldrip/538b65fb091e4376a4b3 to your computer and use it in GitHub Desktop.
# create a test app
flynn create --remote="" test-app
# create a release using the latest app image
flynn -a test-app release add -f config.json "https://registry.hub.docker.com?name=brandfolder/flynn-test-app&id=d0f2136468110ad368684c7ccb04e0a756830c18926e50a4ef0e87a8b46022a5"
# scale the server to one process, it should come up.
flynn -a test-app scale web=1
# curl the app, should get 'hello earth'
curl http://test-app.demo.localflynn.com/
{
"processes": {
"web": {
"cmd": ["rackup", "-p$PORT", "-h$HOST"],
"ports": [{
"port": 8080,
"proto": "tcp",
"service": {
"name": "web",
"create": true,
"check": { "type": "tcp" }
}
}]
}
}
}
@jwaldrip
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment