File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,10 @@ export default defineCommand({
110110 process . exit ( 1 )
111111 }
112112 const srcStorage = createStorage ( {
113- driver : fsDriver ( { base : distDir } ) ,
113+ driver : fsDriver ( {
114+ base : distDir ,
115+ ignore : [ '.DS_Store' ]
116+ } ) ,
114117 } )
115118 const fileKeys = await srcStorage . getKeys ( )
116119 const files = await Promise . all ( fileKeys . map ( async ( fileKey ) => {
@@ -136,12 +139,19 @@ export default defineCommand({
136139 // TODO: make a tar with nanotar by the amazing Pooya Parsa (@pi0)
137140
138141 const spinner = ora ( `Deploying ${ colors . blue ( linkedProject . slug ) } to ${ deployEnvColored } ...` ) . start ( )
142+ setTimeout ( ( ) => spinner . color = 'magenta' , 2500 )
143+ setTimeout ( ( ) => spinner . color = 'blue' , 5000 )
144+ setTimeout ( ( ) => spinner . color = 'yellow' , 7500 )
139145 const deployment = await $api ( `/teams/${ linkedProject . teamSlug } /projects/${ linkedProject . slug } /deploy` , {
140146 method : 'POST' ,
141147 body : {
142148 git,
143149 files
144150 }
151+ } ) . catch ( ( err ) => {
152+ spinner . fail ( `Failed to deploy ${ colors . blue ( linkedProject . slug ) } to ${ deployEnvColored } .` )
153+ consola . error ( err . message . split ( 'Error: ' ) [ 1 ] )
154+ process . exit ( 1 )
145155 } )
146156 spinner . succeed ( `Deployed ${ colors . blue ( linkedProject . slug ) } to ${ deployEnvColored } ...` )
147157 // Check DNS & ready url for first deployment
You can’t perform that action at this time.
0 commit comments