Skip to content

Commit

Permalink
added 'controlled' auto reload for API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jehfkemsy committed Aug 16, 2019
1 parent 1958115 commit aa776ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions repositories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const {
SHELL_2017_SECRET
} = process.env;

const restart = "systemctl reload nginx";
const pull = "git pull";
const build = "yarn build";
const update = "yarn";
const restart = "yarn restart";
const reload = "systemctl reload nginx";

module.exports = [
{
Expand All @@ -28,17 +29,17 @@ module.exports = [
{
path: path.resolve(__dirname, "../Turtle"),
secret: TURTLE_SECRET,
commands: `${pull} && ${update}`
commands: `${pull} && ${update} && ${reload}`
},
{
path: path.resolve(__dirname, "../Shell"),
secret: SHELL_SECRET,
commands: `${pull} && ${update} && ${build} && ${restart}`
commands: `${pull} && ${update} && ${build} && ${reload}`
},
{
path: path.resolve(__dirname, "../Anchor"),
secret: ANCHOR_SECRET,
commands: `${pull} && ${update} && ${build} && ${restart}`
commands: `${pull} && ${update} && ${build} && ${reload}`
},
{
path: path.resolve(__dirname),
Expand Down

0 comments on commit aa776ad

Please sign in to comment.