Skip to content

Commit

Permalink
fix(setup): remove unnecessary move of docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Aug 5, 2024
1 parent 90c7a55 commit 08e94d3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions remix.init/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,6 @@ async function setupDeployment({ rootDirectory }) {
])
if (shouldDeploy) {
console.log(`🚀 Deploying apps...`)
console.log(' Moving Dockerfile and .dockerignore to root (temporarily)')
await fs.rename(
path.join(rootDirectory, 'other', 'Dockerfile'),
path.join(rootDirectory, 'Dockerfile'),
)
await fs.rename(
path.join(rootDirectory, 'other', '.dockerignore'),
path.join(rootDirectory, '.dockerignore'),
)
console.log(` Starting with staging`)
await $I`fly deploy --app ${APP_NAME}-staging`
await open(`https://${APP_NAME}-staging.fly.dev/`)
Expand All @@ -201,15 +192,6 @@ async function setupDeployment({ rootDirectory }) {
await $I`fly deploy --app ${APP_NAME}`
await open(`https://${APP_NAME}.fly.dev/`)
console.log(` Production deployed...`)
console.log(' Moving Dockerfile and .dockerignore back to other/')
await fs.rename(
path.join(rootDirectory, 'Dockerfile'),
path.join(rootDirectory, 'other', 'Dockerfile'),
)
await fs.rename(
path.join(rootDirectory, '.dockerignore'),
path.join(rootDirectory, 'other', '.dockerignore'),
)
}

const { shouldSetupGitHub } = await inquirer.prompt([
Expand Down

0 comments on commit 08e94d3

Please sign in to comment.