-
-
Save jwaldrip/538b65fb091e4376a4b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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/ | |
This file contains hidden or 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
{ | |
"processes": { | |
"web": { | |
"cmd": ["rackup", "-p$PORT", "-h$HOST"], | |
"ports": [{ | |
"port": 8080, | |
"proto": "tcp", | |
"service": { | |
"name": "web", | |
"create": true, | |
"check": { "type": "tcp" } | |
} | |
}] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see the app here:
https://github.com/brandfolder/flynn-test-app