Skip to content

Commit

Permalink
Merge pull request #66 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 0e4bf7e + 0e2e2dc commit d6c0c6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ const createContainer = async (project, domain) => {
// and port number
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 url = new URL(projectURL)
const hostname = url.hostname
Expand Down

0 comments on commit d6c0c6d

Please sign in to comment.