So, I've created a new Rails 5.1 app, worked on it locally (even built some 
webpack modules) and deployed to App Engine Flex environment.

It worked nicely, but I saw this error message in the console output:

Step 8/10 : RUN if test -d app/assets -a -f config/application.rb; then     
  bundle exec rake assets:precompile || true;     fi
 ---> Running in 503bf8112b4a
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
/app/vendor/bundle/ruby/2.4.0/bin/rake: No such file or directory - yarn

It continued to finish the deploy, and the app worked normally, but I 
suspect that was because I ran `RAILS_ENV=production rails 
assets:precompile` locally before deploying (I was following the tutorial 
<https://cloud.google.com/ruby/rails/appengine#deploy_to_app_engine_flexible_environment>
 for 
deploying). It probably wouldn't have built the assets.

Is there a way (or is it on the roadmap) to install yarn on the ruby 
runtime, so we can leverage asset precompilation during deploy, avoiding 
the need to precompile locally.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/813ea950-fd46-4260-9068-7ab75d99364f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... Rafael Soares

Reply via email to