kopia lustrzana https://github.com/nolanlawson/pinafore
				
				
				
			make mastodon installation faster in dev mode (#624)
							rodzic
							
								
									6bb4c80450
								
							
						
					
					
						commit
						00cafece8c
					
				|  | @ -95,9 +95,17 @@ async function runMastodon () { | ||||||
|     'yarn --pure-lockfile' |     'yarn --pure-lockfile' | ||||||
|   ] |   ] | ||||||
| 
 | 
 | ||||||
|   for (let cmd of cmds) { |   const installedFile = path.join(mastodonDir, 'installed.txt') | ||||||
|     console.log(cmd) |   try { | ||||||
|     await exec(cmd, { cwd, env }) |     await stat(installedFile) | ||||||
|  |     console.log('Already installed Mastodon') | ||||||
|  |   } catch (e) { | ||||||
|  |     console.log('Installing Mastodon...') | ||||||
|  |     for (let cmd of cmds) { | ||||||
|  |       console.log(cmd) | ||||||
|  |       await exec(cmd, { cwd, env }) | ||||||
|  |     } | ||||||
|  |     await writeFile(installedFile, '', 'utf8') | ||||||
|   } |   } | ||||||
|   const promise = spawn('foreman', ['start'], { cwd, env }) |   const promise = spawn('foreman', ['start'], { cwd, env }) | ||||||
|   const log = fs.createWriteStream('mastodon.log', { flags: 'a' }) |   const log = fs.createWriteStream('mastodon.log', { flags: 'a' }) | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Nolan Lawson
						Nolan Lawson