You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously the CITIZEN_ADDR needs to be specified, but the other ENV vars are server mode specific. It looks like this was introduced in v0.6.0 with these exception blocks:
thrownewError(`unknown database type: ${t}. Please set CITIZEN_DATABASE_TYPE environment variable.`);
I was able to work around this by adding conditional logic to only throw the exceptions when running in server mode, and ignoring that block when running module/provider mode.
The text was updated successfully, but these errors were encountered:
Observed when running v0.6.0 cli to publish a module as:
The cli would throw and error if any of the following ENVs are not set:
CITIZEN_DATABASE_TYPE=mysql
CITIZEN_STORAGE=s3
CITIZEN_ADDR=https://registry.address.com/
Obviously the CITIZEN_ADDR needs to be specified, but the other ENV vars are server mode specific. It looks like this was introduced in v0.6.0 with these exception blocks:
citizen/storages/storage.js
Line 12 in 7e4d264
citizen/stores/store.js
Line 14 in 7e4d264
I was able to work around this by adding conditional logic to only throw the exceptions when running in server mode, and ignoring that block when running module/provider mode.
The text was updated successfully, but these errors were encountered: