fix: baseDirectory
This commit is contained in:
parent
5c69ff3339
commit
436bd73786
@ -759,27 +759,32 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#if application.buildPack === 'docker'}
|
{#if application.buildPack === 'docker'}
|
||||||
<div class="grid grid-cols-2 items-center pb-4">
|
<div class="grid grid-cols-2 items-center pb-4">
|
||||||
<label for="dockerFileLocation"
|
<label for="dockerFileLocation" class="mb-10"
|
||||||
class="mb-10"
|
|
||||||
>Dockerfile Location <Explainer
|
>Dockerfile Location <Explainer
|
||||||
explanation={"Should be absolute path, like <span class='text-settings font-bold'>/data/Dockerfile</span> or <span class='text-settings font-bold'>/Dockerfile.</span>"}
|
explanation={"Should be absolute path, like <span class='text-settings font-bold'>/data/Dockerfile</span> or <span class='text-settings font-bold'>/Dockerfile.</span>"}
|
||||||
/></label
|
/></label
|
||||||
>
|
>
|
||||||
<div class="form-control w-full">
|
<div class="form-control w-full">
|
||||||
<input
|
<input
|
||||||
class="w-full input"
|
class="w-full input"
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
readonly={!$appSession.isAdmin}
|
readonly={!$appSession.isAdmin}
|
||||||
name="dockerFileLocation"
|
name="dockerFileLocation"
|
||||||
id="dockerFileLocation"
|
id="dockerFileLocation"
|
||||||
bind:value={application.dockerFileLocation}
|
bind:value={application.dockerFileLocation}
|
||||||
placeholder="default: /Dockerfile"
|
placeholder="default: /Dockerfile"
|
||||||
/>
|
/>
|
||||||
<label class="label">
|
{#if application?.baseDirectory}
|
||||||
<span class="label-text-alt text-xs">Path: {application.baseDirectory.replace(/^\/$/,'')}{application.dockerFileLocation}</span>
|
<label class="label">
|
||||||
</label>
|
<span class="label-text-alt text-xs"
|
||||||
</div>
|
>Path: {application.baseDirectory.replace(
|
||||||
|
/^\/$/,
|
||||||
|
''
|
||||||
|
)}{application.dockerFileLocation}</span
|
||||||
|
>
|
||||||
|
</label>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if !notNodeDeployments.includes(application.buildPack)}
|
{#if !notNodeDeployments.includes(application.buildPack)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user