title: Error when deploying laravel app to google app engine
body: <p>I find this error when I do the according to <a href="https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible" rel="nofollow noreferrer">this doc</a></p>
  <pre><code>ERROR: build step 1 &quot;gcr.io/cloud-builders/docker@sha256:9ab43021cda6dda1507c00d9c0489829515637bebbc9e9e3f99a24f253abc768&quot;
  failed: exit status 1
  </code></pre>
  <hr />
  <pre><code>ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at 
  https://console.cloud.google.com/gcr/builds/5b9ce7e4-eb2e-4d3f-8c6c-ddf503bde123?project=friendlychat-ed239
  Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details
  </code></pre>
  <p>Relevant part of log is:</p>
  <pre><code>Step #1: [0mDiscovered Package: fideloper/proxy 
  Step #1: Discovered Package: laravel/tinker 
  Step #1: Package manifest generated successfully. 
  Step #1: [91m&gt; Illuminate\Foundation\ComposerScripts::postInstall 
  Step #1: [0m[91m&gt; php artisan cache:clear 
  Step #1: [0m[91m[13-Feb-2018 16:31:05 UTC] [2018-02-13 16:31:05] 
  production.ERROR: SQLSTATE[HY000] [2002] No such file or directory 
  {&quot;exception&quot;:&quot;[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /app/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67)&quot;} [] 
  Step #1: [0m[91m[13-Feb-2018 16:31:05 UTC] [2018-02-13 16:31:05] production.ERROR: SQLSTATE[HY000] [2002] No such file or directory (SQL: delete from `cache`) {&quot;exception&quot;:&quot;[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory (SQL: delete from `cache`) at /app/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /app/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67)&quot;} [] 
  Step #1: [0m Step #1: In Connection.php line 664: 
  Step #1:  Step #1: SQLSTATE[HY000] [2002] No such file or directory (SQL: delete from `cache`)  
  Step #1:  Step #1:  Step #1: In Connector.php line 67: 
  Step #1:  Step #1: SQLSTATE[HY000] [2002] No such file or directory  
  Step #1:  Step #1:  Step #1: [91mScript php artisan cache:clear handling the post-install-cmd event returned with error code 1 
  Step #1: The command '/bin/sh -c /build-scripts/composer.sh' returned a non-zero code: 1 
  Finished Step #1 ERROR ERROR: build step 1 &quot;gcr.io/cloud-builders/docker@sha256:9ab43021cda6dda1507c00d9c0489829515637bebbc9e9e3f99a24f253abc768&quot; 
  failed: exit status 1 Step #1: [0m
  </code></pre>
  <p>How to fix it?</p>