/appengine-symfony-starter-project

Symfony Starter Project on Google App Engine

Primary LanguagePHPApache License 2.0Apache-2.0

This repository contains a Symfony app for Google App Engine, based off the Symfony Standard Edition.

Installation

Install this via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command to create this project:

composer create-project google/appengine-symfony-starter-project:@dev

Set Up

To run the starter app, complete the following steps:

  1. create a cloud storage bucket for your App Engine project.
  2. open app.yaml and change YOUR_GCS_BUCKET_NAME to the name of the bucket you created.
  3. open php.ini and change YOUR_GCS_BUCKET_NAME to the name of the bucket you created.

Deployment

Deploy to your AppEngine instance:

gcloud app deploy

You can also run this locally using the app-engine

See also the Symfony Hello World tutorial

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.

  3. It may be useful to clear the cache. You can do this by issuing a GET request to https://YOUR_PROJECT_NAME.appspot.com/clear_cache.php. You will be promoted for authentication, and then the script will delete symfony's cache from your Cloud Storage Bucket.

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.