From 5a0ef4765c60ed5a5df50e59a2ef42787dcdc87d Mon Sep 17 00:00:00 2001 From: Eduardo Date: Sat, 11 Jan 2020 21:02:38 +0100 Subject: [PATCH] Add a newline to the end of some files and change identationto the deploy file --- src/.env.example | 2 +- src/.gitignore | 2 +- src/deploy/index.js | 28 ++++++++++++++-------------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/.env.example b/src/.env.example index 774cfb5..4e45c76 100644 --- a/src/.env.example +++ b/src/.env.example @@ -1,2 +1,2 @@ GHOST_ADMIN_API_URL= -GHOST_ADMIN_API_KEY= \ No newline at end of file +GHOST_ADMIN_API_KEY= diff --git a/src/.gitignore b/src/.gitignore index 2eea525..4c49bd7 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1 +1 @@ -.env \ No newline at end of file +.env diff --git a/src/deploy/index.js b/src/deploy/index.js index 85c7b20..d9fc568 100644 --- a/src/deploy/index.js +++ b/src/deploy/index.js @@ -2,18 +2,18 @@ require('dotenv').config() const GhostAdminApi = require('@tryghost/admin-api'); (async function main() { - try { - const api = new GhostAdminApi({ - url: process.env.GHOST_ADMIN_API_URL, - key: process.env.GHOST_ADMIN_API_KEY, - version: 'canary' - }); + try { + const api = new GhostAdminApi({ + url: process.env.GHOST_ADMIN_API_URL, + key: process.env.GHOST_ADMIN_API_KEY, + version: 'canary' + }); - // Deploy it to the configured site - await api.themes.upload({file: '../liebling.zip'}); - console.log('Theme successfully uploaded.'); - } catch (err) { - console.error(err); - process.exit(1); - } -}()); \ No newline at end of file + // Deploy it to the configured site + await api.themes.upload({file: '../liebling.zip'}); + console.log('Theme successfully uploaded.'); + } catch (err) { + console.error(err); + process.exit(1); + } +}());