Elastic Beanstalk run post deploy script
<p>My node.js app consists of two things, an express backend and a react frontend.</p>

<p>I have two package.json files in this structure</p>

<pre><code>package.json 
/app/package.json
</code></pre>

<p>What I want to do is run a script in my frontend folder, app, that builds my code.</p>

<p>the script I want to run is <code>npm install</code> and <code>npm run build</code>
How do I run this script after a deploy have happened?</p>

<pre><code>commands:
    01_app_npm_install:
        command: npm install
        cwd: app/
    02_app_npm_build:
        command: npm run build
        cwd: app/
</code></pre>

<p>But it returns an error saying that "No such file or direc
tory: 'app/'."</p>

<p>Is this possible to do on aws elastic beanstalk?</p>