Add a newline to the end of some files and change identationto the deploy file
This commit is contained in:
parent
f3e8027a51
commit
5a0ef4765c
|
@ -1,2 +1,2 @@
|
||||||
GHOST_ADMIN_API_URL=
|
GHOST_ADMIN_API_URL=
|
||||||
GHOST_ADMIN_API_KEY=
|
GHOST_ADMIN_API_KEY=
|
||||||
|
|
2
src/.gitignore
vendored
2
src/.gitignore
vendored
|
@ -1 +1 @@
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -2,18 +2,18 @@ require('dotenv').config()
|
||||||
const GhostAdminApi = require('@tryghost/admin-api');
|
const GhostAdminApi = require('@tryghost/admin-api');
|
||||||
|
|
||||||
(async function main() {
|
(async function main() {
|
||||||
try {
|
try {
|
||||||
const api = new GhostAdminApi({
|
const api = new GhostAdminApi({
|
||||||
url: process.env.GHOST_ADMIN_API_URL,
|
url: process.env.GHOST_ADMIN_API_URL,
|
||||||
key: process.env.GHOST_ADMIN_API_KEY,
|
key: process.env.GHOST_ADMIN_API_KEY,
|
||||||
version: 'canary'
|
version: 'canary'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Deploy it to the configured site
|
// Deploy it to the configured site
|
||||||
await api.themes.upload({file: '../liebling.zip'});
|
await api.themes.upload({file: '../liebling.zip'});
|
||||||
console.log('Theme successfully uploaded.');
|
console.log('Theme successfully uploaded.');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in a new issue