Skip to content

Commit

Permalink
Add missing build script in webhook.js (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
gene20898 authored Oct 11, 2023
1 parent 58decfe commit f2deb08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/deployment/amazon-aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ http
.digest('hex');

if (req.headers['x-hub-signature'] == sig) {
exec(`cd ${repo} && git pull && ${PM2_CMD}`, (error, stdout, stderr) => {
exec(`cd ${repo} && git pull && NODE_ENV=production npm run build && ${PM2_CMD}`, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/deployment/digitalocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ More information can be found on webhooks in general in the [GitHub documentatio
.digest('hex');
if (req.headers['x-hub-signature'] == sig) {
exec(`cd ${repo} && git pull && ${PM2_CMD}`, (error, stdout, stderr) => {
exec(`cd ${repo} && git pull && NODE_ENV=production npm run build && ${PM2_CMD}`, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
Expand Down

1 comment on commit f2deb08

@vercel
Copy link

@vercel vercel bot commented on f2deb08 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-git-main-strapijs.vercel.app
documentation-strapijs.vercel.app
docs-vercel-v4.strapi.io

Please sign in to comment.