beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
5 stars 0 forks source link

CLI - beam init should use --save-to-file by default #3328

Closed gabrielbeamable closed 5 months ago

gabrielbeamable commented 7 months ago

The beam init command has a --save-to-file command that is opt-in, but we want to change it so that it becomes the default behaviour. Instead, there should be a flag, --no-token-save that prevents the token from saving to disk.

Bug:

With the latest CLI, follow the steps:

  1. Create a new folder and execute beam init --host=dev in the CLI inside it
  2. After loging in with your credentials, create a new service by executing beam project new service <NAME>
  3. Try running the service by executing beam project run --ids <NAME>
  4. Observe that an error related to a refresh token will happen
  5. Execute echo $BEAM_ENV in the CLI
  6. Observe that it's empty

The variable $BEAM_ENV should have all the data necessary for the microservice to be able to run. This is probably the reason why errors are happening when trying to run SAMS.

Image

cdhanna commented 6 months ago

test this again after --save-to-file becomes the default.