Closed ChrisAtkinson1 closed 5 years ago
I think it's reasonable to edit the profile by hand if other stuff needs to be changed. If you know enough to know you want to change something in the profile it's probably no harder than specifying a command line parameter.
If we made some of those things configurable it would introduce uncertainty: e.g. which NODE_HOME will win, the one configured by 'generate bundle' or the one that's provisioned in the target system?
We've not stopped a power user from editing/scripting any changes they like to the Bundle, but our defaults encourage a separation of concerns between the Application and System configuration information. The port number is a special case however, that spans both environments.
I can think of two approaches that could help.
--port
option with one that accepts a string of name/value pairs that are added to the profile (choosing a separator character will be interesting). We can add examples in the help to show use of PORT as it will be the common use case. Eg:
zowe cics-deploy generate bundle --profile-envvars "PORT=27501"
--port
to say additional environment variables can be added by editing the generated profile.Suggestion is to have a doc topic to say if more environment variables are required, you can edit the profile.
@ChrisAtkinson1 Pull request #160 updated topic Deploying your first app to include:
- Update the CICS Node.js application profile if your application requires environment variables to be set. Edit the .profile file created in step 4, for example nodejsapps/myexpressapp.profile.
We have these as required for example.
And this as generated.
And this as Optional.
The Port can be specified.
Or would we expect the user to edit by hand before pushing ?