title: How to start gatsby using concurrently?
body: <p>I'm using <code>Gatsby</code> in conjuction with <code>Strapi</code> and I have separated this two project using the following structure:</p>
  <pre><code>backend &lt;- contains Strapi
  frontend &lt;- contains Gatsby
  package.json
  </code></pre>
  <p>Inside <code>package.json</code> I've installed <code>concurrently</code> because I would like to run <code>backend</code> and <code>frontend</code> at the same time:</p>
  <pre><code> &quot;scripts&quot;: {
      &quot;backend_dev&quot;: &quot;npm start --prefix backend strapi-develop&quot;,
      &quot;frontend_dev&quot;: &quot;npm start --prefix frontend develop&quot;,
      &quot;dev&quot;: &quot;concurrently \&quot;npm run backend_dev\&quot; \&quot;npm run frontend_dev\&quot;&quot;
    },
  </code></pre>
  <p>when I do: <code>npm run backend_dev</code> all is working fine, but when I try to start <code>Gatsby</code> I get:</p>
  <blockquote>
  <p>Unknown command develop</p>
  </blockquote>
  <p>Seems like I cannot run a <code>Gatsby</code> site from the root folder, because if I do:</p>
  <pre><code>cd frontend
  npm run develop
  </code></pre>
  <p>the site correctly start on the port <code>8000</code></p>
  <p>How can I fix this?</p>
  <p><strong>UPDATE</strong></p>
  <p>the fixed <code>package.json</code> is:</p>
  <pre><code>&quot;backend_dev&quot;: &quot;npm start --prefix backend strapi-develop&quot;,
  &quot;frontend_dev&quot;: &quot;cd frontend &amp;&amp; npm run develop&quot;,
  &quot;dev&quot;: &quot;concurrently \&quot;npm run backend_dev\&quot; \&quot;npm run frontend_dev\&quot;&quot;
  </code></pre>