Skip to content

Commit

Permalink
Merge pull request #101 from flowforge/fix-editor-path
Browse files Browse the repository at this point in the history
Fix editor path
  • Loading branch information
Steve-Mcl authored Aug 9, 2023
2 parents 734d6b6 + 0c8fbd1 commit 8ccafd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,11 @@ const createDeployment = async (project, options) => {

const baseURL = new URL(this._app.config.base_url)
let projectURL
if (!project.url) {
if (!project.url.startsWith('http')) {
projectURL = `${baseURL.protocol}//${project.safeName}.${this._options.domain}`
} else {
projectURL = project.url
const temp = new URL(project.url)
projectURL = `${temp.protocol}//${temp.hostname}${temp.port ? ':' + temp.port : ''}`
}

const teamID = this._app.db.models.Team.encodeHashid(project.TeamId)
Expand Down

0 comments on commit 8ccafd9

Please sign in to comment.