A collection of Rake tasks for working with IBM Cloud Code Engine projects
- 
Add the gem to your project: $ bundle add code-engine-tasks 
- 
Require the gem in your Rakefile:require 'code_engine/tasks' 
The following envrionment variables need to be set:
export CE_ACCOUNT=XXXXXXXX1234YYYYYYYY5678ZZZZZZZZ
export CE_PROJECT=presentations
export CE_APP=concourse-resource-presentation
export CE_REGION=eu-deOptionally, CE_RESOURCE_GROUP can be set; it defaults to default.
How to get these values:
- CE_ACCOUNT- running- ibmcloud account listand use the "Account GUID" of the account the project resides in
- CE_REGION- the region where your Code Engine app should run in (use- rake ce:regionsor check the list for possible values)
- CE_PROJECT- the name of your Code Engine project. Find existing ones with- ibmcloud ce project listor provide the name for a new one, which will be created.
- CE_APP- the name of your Code Engine app. Find existing ones with- ibmcloud ce application listor provide the name for a new one, which will be created.
All Rake tasks have documentation; use
rake --tasksto show it.
If the app does not already exist, create a new one with
$ rake ce:app:createSubsequent updates of the app can be performed with
$ rake ce:app:updateThe URL of the app can be shown with
$ rake ce:app:url- cli tool to generate a boilerplate project (ce init --type static-web-app)