Skip to content

Commit

Permalink
checking test status without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Case-E committed Aug 10, 2024
1 parent 89797ac commit 07c5f32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions waspc/packages/deploy/src/providers/fly/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { DeployOptions } from './DeployOptions.js';
import { createDeploymentInfo, DeploymentInfo } from '../DeploymentInfo.js';
import { flySetupCommand } from '../index.js';
import { secretExists } from '../helpers/flyctlHelpers.js';
// import { stripTrailingSlash } from "wasp/universal/url";

export async function deploy(options: DeployOptions): Promise<void> {
waspSays('Deploying your Wasp app to Fly.io!');
Expand Down Expand Up @@ -103,11 +104,11 @@ async function deployClient(deploymentInfo: DeploymentInfo<DeployOptions>, { bui
copyProjectClientTomlLocally(deploymentInfo.tomlFilePaths);

waspSays('Building web client for production...');
waspSays('If you have a custom domain, please run the command with REACT_APP_API_URL=<your-server-url> wasp deploy fly deploy');
// waspSays('If you configured a custom domain for the server, please run the command with an env variable: REACT_APP_API_URL=https://serverUrl.com wasp deploy fly deploy');

const serverUrl = process.env.REACT_APP_API_URL || deploymentInfo.serverUrl;
// const serverUrl = stripTrailingSlash(process.env.REACT_APP_API_URL) || deploymentInfo.serverUrl;
await $`npm install`;
await $`REACT_APP_API_URL=${serverUrl} npm run build`;
// await $`REACT_APP_API_URL=${serverUrl} npm run build`;

// Creates the necessary Dockerfile for deploying static websites to Fly.io.
// Adds dummy .dockerignore to supress CLI question.
Expand Down

0 comments on commit 07c5f32

Please sign in to comment.