Migrating the toda-tocochan-bus Flask app to IBM Bluemix
I moved from GCP to IBM Bluemix!
How many minutes until the toco-chan bus?
Overview
After moving from Sakura VPS to GCP,
this time I migrated from GCP to IBM Bluemix.
Here is the earlier story from when I was running it on GCP:
On GCP, once I put an LB in front of GKE the price shot up dramatically
and I ended up exceeding the free tier (>_<).
My aim was somehow to keep running it at a low cost.
Why IBM Bluemix instead of Heroku?
The great thing about IBM Bluemix is how feature-rich it is.
You get Kibana for free, available by default.
It also supports integration with Git.
Below I have put together the steps, assuming you are working on a Mac.
Prerequisites
- Sign up for IBM Bluemix in advance
- clone
1 | macOS%$ git clone https://github.com/kenzo0107/toda-tocochan-bus-on-ibmbluemix |
- Install the Cloud Foundry CLI
1 | macOS%$ brew tap cloudfoundry/tap |
Deploy
1 | macOS%$ cf api https://api.ng.bluemix.net |
- The API differs depending on the Region.
| Region | API URL |
|---|---|
| US South | https://api.ng.bluemix.net |
| United Kingdom | https://api.eu-gb.bluemix.net |
Conclusion
Thanks to the Cloud Foundry CLI, the migration was easy too ♪
I thought that if I could do things like restricting access to specific IPs or domains for security,
it could be usable as a method for commercial use.
I asked them about that point, but I have not heard back for about two weeks, so I will reach out again.
↑ Questions were English-only!
I hope their support gets strengthened.
That’s all.
I hope this is helpful.
Migrating the toda-tocochan-bus Flask app to IBM Bluemix
https://kenzo0107.github.io/en/2017/10/29/toda-tocochan-bus-flask-on-ibm-bluemix/
