Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

GoogleCloudPlatform/laravel

 
 

Repository files navigation

status: inactive

This project is no longer actively developed or maintained.

See the community tutorial for Running Laravel on App Engine Standard instead.

This repository contains a modified Laravel Starter app for Google App Engine.

Installation

  1. Clone the repository with

     git clone https://github.com/GoogleCloudPlatform/laravel.git
    
  2. Follow the PHP Tutorial if you have never used App Engine before.

  3. Create a CloudSQL instance based on these instructions. Also create a database for storing the Eloquent ORM.

  4. Replace <project-id>, <instance-id> and <database-name> in app.yaml with the corresponding value for your Google Cloud project and ClouSQL instance. By default, the app will store the cache files and logs at a specific location in the app's default GCS bucket. This can be changed by altering the STORAGE_PATH environmental variable in app.yaml. Remember to also update google_app_engine.allow_include_gs_buckets to match the new value in php.ini.

  5. Install composer if you haven't done so previously. To install all required dependencies, run the following command from your project's root, which is the directory that contains composer.json.

     php composer.phar install
    
  6. Deploy your app.

  7. Access your app using http://your_project_id.appspot.com/ and you should see Laravel's default welcome page.

Troubleshooting

  1. If Composer fails to download the dependencies, make sure that your local PHP installation satisfies Composer's system requirements. Specifically, cURL support is required.

  2. If you see errors about missing the default Cloud Storage bucket, follow the cloud integration instructions to create a default bucket for your project.

Contributing

Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.

  1. Please sign our Contributor License Agreement.
  2. Fork this Git repository and make your changes.
  3. Create a Pull Request
  4. Incorporate review feedback to your changes.
  5. Accepted!

License

All files in this repository are under the MIT License unless noted otherwise.

Packages

No packages published

Languages

  • PHP 83.8%
  • Blade 15.1%
  • Other 1.1%