loading...

Running GoBuffalo on Google App Engine

tombiscan profile image Tom Biscan ・1 min read

Ever wondered how to deploy the great Buffalo on GAE?

Here is the app.yaml file that will get you started:

runtime: go111

#[START env_variables]
env_variables:
  PORT: 8080
  GO_ENV: "production"
#[END env_variables]

handlers:
- url: /robots.txt
  static_files: public/robots.txt
  upload: public/robots.txt
- url: /assets
  static_dir: public/assets
- url: /.*
  script: auto

Additionally, set your .env file to contain:

DATABASE_URL="user=postgres password=Im4P4$$w0Rd dbname=golangtesting_production host=/cloudsql/my-project-id:europe-west1:my-production-instance"
SESSION_SECRET=yeahR1ght

if you want to deploy it with the database.

For more details take a look at Gobuffalo on App Engine. There you can find additional environment settings, how to set up the database, run migrations and handle assets.

Posted on by:

tombiscan profile

Tom Biscan

@tombiscan

I help service businesses to save time on recurring tasks.

Discussion

pic
Editor guide