Deploying Kitura Swift App to IBM Bluemix

brew install cloudfoundry/tap/cf-cli
applications:
— name: Hello-Pokemon
random-route: true
memory: 256M
command: Hello-Pokemon
buildpack: swift_buildpack
cf api https://api.ng.bluemix.net
cf login
cf push
cf logs Hello-Pokemon --recent
cf push Hello-Pokemon -u process
health-check-type: process
swift buildcf push Hello-Pokemon -u process

UPDATE:

As Alex pointed out, you can allow the code to figure out which port to use.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohammad Azam

Mohammad Azam

6.8K Followers

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts. https://www.udemy.com/user/mohammad-azam-2/