Skip to content

Commit

Permalink
uncommented the changes again
Browse files Browse the repository at this point in the history
  • Loading branch information
Case-E committed Aug 12, 2024
1 parent 07c5f32 commit 1d61f08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions waspc/packages/deploy/src/providers/fly/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +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";
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 @@ -104,11 +104,11 @@ async function deployClient(deploymentInfo: DeploymentInfo<DeployOptions>, { bui
copyProjectClientTomlLocally(deploymentInfo.tomlFilePaths);

waspSays('Building web client for production...');
// 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');
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 = stripTrailingSlash(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 1d61f08

Please sign in to comment.