@@ -179,11 +179,21 @@ async function setupDeployment({ rootDirectory }) {
179179 name : 'shouldDeploy' ,
180180 type : 'confirm' ,
181181 default : true ,
182- message : 'Would you like to deploy right now?' ,
182+ message :
183+ 'Would you like to deploy right now? (This will take a while, and you can always wait until you push to GitHub instead).' ,
183184 } ,
184185 ] )
185186 if ( shouldDeploy ) {
186187 console . log ( `🚀 Deploying apps...` )
188+ console . log ( ' Moving Dockerfile and .dockerignore to root (temporarily)' )
189+ await fs . rename (
190+ path . join ( rootDirectory , 'other' , 'Dockerfile' ) ,
191+ path . join ( rootDirectory , 'Dockerfile' ) ,
192+ )
193+ await fs . rename (
194+ path . join ( rootDirectory , 'other' , '.dockerignore' ) ,
195+ path . join ( rootDirectory , '.dockerignore' ) ,
196+ )
187197 console . log ( ` Starting with staging` )
188198 await $I `fly deploy --app ${ APP_NAME } -staging`
189199 // "fly open" was having trouble with opening the staging app
@@ -194,6 +204,15 @@ async function setupDeployment({ rootDirectory }) {
194204 await $I `fly deploy --app ${ APP_NAME } `
195205 await $I `open https://${ APP_NAME } .fly.dev/`
196206 console . log ( ` Production deployed...` )
207+ console . log ( ' Moving Dockerfile and .dockerignore back to other/' )
208+ await fs . rename (
209+ path . join ( rootDirectory , 'Dockerfile' ) ,
210+ path . join ( rootDirectory , 'other' , 'Dockerfile' ) ,
211+ )
212+ await fs . rename (
213+ path . join ( rootDirectory , '.dockerignore' ) ,
214+ path . join ( rootDirectory , 'other' , '.dockerignore' ) ,
215+ )
197216 }
198217
199218 const { shouldSetupGitHub } = await inquirer . prompt ( [
0 commit comments