Skip to content

Commit 08e94d3

Browse files
committed
fix(setup): remove unnecessary move of docker files
1 parent 90c7a55 commit 08e94d3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

remix.init/index.mjs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,6 @@ async function setupDeployment({ rootDirectory }) {
184184
])
185185
if (shouldDeploy) {
186186
console.log(`🚀 Deploying apps...`)
187-
console.log(' Moving Dockerfile and .dockerignore to root (temporarily)')
188-
await fs.rename(
189-
path.join(rootDirectory, 'other', 'Dockerfile'),
190-
path.join(rootDirectory, 'Dockerfile'),
191-
)
192-
await fs.rename(
193-
path.join(rootDirectory, 'other', '.dockerignore'),
194-
path.join(rootDirectory, '.dockerignore'),
195-
)
196187
console.log(` Starting with staging`)
197188
await $I`fly deploy --app ${APP_NAME}-staging`
198189
await open(`https://${APP_NAME}-staging.fly.dev/`)
@@ -201,15 +192,6 @@ async function setupDeployment({ rootDirectory }) {
201192
await $I`fly deploy --app ${APP_NAME}`
202193
await open(`https://${APP_NAME}.fly.dev/`)
203194
console.log(` Production deployed...`)
204-
console.log(' Moving Dockerfile and .dockerignore back to other/')
205-
await fs.rename(
206-
path.join(rootDirectory, 'Dockerfile'),
207-
path.join(rootDirectory, 'other', 'Dockerfile'),
208-
)
209-
await fs.rename(
210-
path.join(rootDirectory, '.dockerignore'),
211-
path.join(rootDirectory, 'other', '.dockerignore'),
212-
)
213195
}
214196

215197
const { shouldSetupGitHub } = await inquirer.prompt([

0 commit comments

Comments
 (0)