'Google App Engine asset pipeline standard environment

Is it possible to use the Ruby on Rails asset pipeline in Google App Engine when the app is deployed to a standard (not flexible) environment? I know precompilation happens when deploying to a flexible environment but I can't get it to work for the standard environment.



Solution 1:[1]

It is possible. Check the full documentation here: Ruby in the App Engine Standard Environment.

Note that the Ruby Standard Environment it's on Beta stage, so keep in mind that it might get changed overtime.

Solution 2:[2]

Instead of using the skip_files section of app.yaml, you can instead create a .gcloudignore file and add a line for /public/assets. If this directory is not present, the docs say:

The Ruby runtime executes rake assets:precompile during deployment to generate static assets and sets the RAILS_SERVE_STATIC_FILES environment variable to enable static file serving in production.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kevin Quinzel
Solution 2 aherriot