Verified Commit 15327c8d authored by Aral Balkan's avatar Aral Balkan
Browse files

Update deploy script (WIP-3)

parent a758a403
...@@ -54,10 +54,9 @@ if (commandLineOptions.deploy && childProcess.execSync('git status').toString(). ...@@ -54,10 +54,9 @@ if (commandLineOptions.deploy && childProcess.execSync('git status').toString().
const websitePath = path.resolve(path.join(__dirname, '..', '..', 'site')) const websitePath = path.resolve(path.join(__dirname, '..', '..', 'site'))
if (commandLineOptions.deploy && !fs.existsSync(websitePath)) { if (commandLineOptions.deploy && !fs.existsSync(websitePath)) {
console.log('❌ Error: No local working copy of Site.js web site found.') console.log('❌ Error: No local working copy of Site.js web site found.\n')
console.log(`Please clone https://small-tech.org/site.js/site to ${websitePath}`) console.log(` Please clone https://small-tech.org/site.js/site to ${websitePath}`)
console.log('(and ensure you have commit permissions on the repository)') console.log(' (and ensure you have commit permissions on the repository) before attempting to deploy.\n')
console.log('before attempting to deploy.\n')
process.exit(1) process.exit(1)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment