Pre~
So sometime ago I try to search free host for Go and found out that IBM Cloud gave free stuff on their system. I went and try but didn’t read the document too much, I’m just excited to try the GO server. I’ve been learning the buffalo framework for a while then I have to stop because got injured in my ankle and try to rehabilitate them for a few month so I can walk again.
Anyway I found free stuff from IBM then I just want to try it out. This writing is just a documentation for me and anyone who see it useful. I didn’t try to write a very detailed or well edited science stuff. This document was meant to be a small cheatsheet for future reference.
IBM
CLOUD DASHBOARD
If you already registered and logged in, you should be redirected to the Dashboard. If you see the menu from image below you’ll notice there are a lot of stuff ready to be explored. Now I just need to find where I could upload my GO code into server.
Anyway I chose the Cloud Foundry just because its on the very first menu and lucky for me its said “Deploy and run your applications without managing servers or clusters with IBM Cloud Foundry” and when scroll bit further I found that it has a lot of App runtime
and
if you click .go it will redirect to Create Sample App page
note:
I really should save the summary because it will be used
for ibm cloud CLI
after creating the Free Cloud Foundry Service we can begin to upload the code. But before we could do that I suggest to read and try the Getting Started Part from the menu and try out IBM CLOUD CLI and using the sample code as base before we try our code. As you see in image below
IBM
cloud host the sample code to use in Cloud Foundry. And if you see
the sample code, the structure will be very different in what you and
I use if we do from the website GO itself. The module path, and other
stuff that I still don’t get it but I think IBM has own setting to
be used for running GO. The framework that being used is GIN.
I already create using sample code. Here is the running site https://riza-go-pilot.us-south.cf.appdomain.cloud/
below is just
unfinished writing and some screenshot. There are few error and
deprecated code from the Getting Started doc, but I manage to run it.
Post~
I didn't put any detail just because I had so many error and don't care about anything else but how to troubleshoot this problem. Anyway thanks
IBM CLOUD CLI
1. ibmcloud
2. ibmcloud login, Target region, ibmcloud info
3. Error Using Target –cf
4. Installing ibmcloud cf
5. after found out what to input for empty org, space, api endpoint
6. using ibmcloud target –cf without error
7. Testing cloud foundry GO sample, and error
8. push the sample to Target, found out buildpack was deprecated
9. after few minutes its start
10. check result. And what a journey
Comments