Skip to content

Commit

Permalink
fix(basic.gblib): FILL keyword can now template images and AS IMAGE c…
Browse files Browse the repository at this point in the history
…an convert a DOCX to a PNG.
  • Loading branch information
rodrigorodriguez committed Feb 9, 2023
1 parent 16bdab6 commit 41ceedf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class SystemKeywords {

// Checks if it is a GBFILE.

if (data.data) {
if (data.data) {
const gbfile = data.data;

let { baseUrl, client } = await GBDeployer.internalGetDriveClient(this.min);
Expand Down Expand Up @@ -1249,9 +1249,9 @@ export class SystemKeywords {

// Determines full path at source and destination.

const root = urlJoin(`/${botId}.gbai/${botId}.gbdata`);
const root = urlJoin(`/${botId}.gbai/${botId}.gbdrive`);
const srcPath = urlJoin(root, src);
const dstPath = urlJoin(`/${botId}.gbai/${botId}.gbdata`, dest);
const dstPath = urlJoin(`/${botId}.gbai/${botId}.gbdrive`, dest);

// Checks if the destination contains subfolders that
// need to be created.
Expand Down
7 changes: 3 additions & 4 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,16 @@ export class GBServer {
const azureDeployer: AzureDeployerService = await AzureDeployerService.createInstance(deployer);
const adminService: GBAdminService = new GBAdminService(core);

if (process.env.NODE_ENV === 'development' && !process.env.BOT_URL) {
const proxy = GBConfigService.get('REVERSE_PROXY');
if (process.env.NODE_ENV === 'development' ) {
const proxy = GBConfigService.get('BOT_URL');
if (proxy !== undefined) {
GBServer.globals.publicAddress = proxy;
} else {
// Ensure that local development proxy is setup.

GBLog.info(`Establishing a development local proxy (ngrok)...`);
GBLog.info(`Establishing a development local proxy (proxy) on BOT_URL...`);
GBServer.globals.publicAddress = await core.ensureProxy(port);
}
process.env.BOT_URL = GBServer.globals.publicAddress;
} else {
const serverAddress = process.env.BOT_URL;
GBLog.info(`Defining server address at ${serverAddress}...`);
Expand Down

0 comments on commit 41ceedf

Please sign in to comment.