简体   繁体   English

在Google Cloud Platform上使用Elixir

[英]Using Elixir on Google Cloud Platform

Does anyone know if it's possible to use Elixir on Google Cloud Platform? 有谁知道是否可以在Google Cloud Platform上使用Elixir? Specifically I'd like to know how to deploy an app to App Engine, and how to access the Cloud Storage API. 具体来说,我想知道如何将应用程序部署到App Engine,以及如何访问Cloud Storage API。

No custom runtime required any more. 不再需要自定义运行时。 Elixir is supported natively on Google Cloud Platform: https://cloud.google.com/elixir/ Google云端平台本身支持Elixir: https//cloud.google.com/elixir/

Quickstart dock: https://cloud.google.com/community/tutorials/elixir-phoenix-on-google-app-engine/ 快速入门码头: https//cloud.google.com/community/tutorials/elixir-phoenix-on-google-app-engine/

Check this community-tutorial on how to 查看此社区教程,了解如何

  • Create an OTP release for your app using Distillery 使用Distillery为您的应用创建OTP版本
  • Wrap your app release in a Docker image 将您的应用程序版本包装在Docker映像中
  • Deploy your app on Google Kubernetes Engine 在Google Kubernetes Engine上部署您的应用程序

Phoenix/Elixir on Google Cloud Google Cloud上的Phoenix / Elixir

Accessing the Cloud Storage API is preferably done via JSON nowadays. 现在,最好通过JSON访问Cloud Storage API Without more information I provide more customized information; 如果没有更多信息,我将提供更多定制信息。 see the Google Cloud Storage JSON API for more info. 有关更多信息,请参见Google Cloud Storage JSON API

Use a custom runtime in the App Engine flexible environment to use an alternative implementation of Java, Python, Node.js, or Go, or write code in any other language . App Engine灵活环境中使用自定义运行时 ,以使用Java,Python,Node.js或Go的替代实现,或以任何其他语言编写代码。

Source: https://cloud.google.com/appengine/docs/flexible/custom-runtimes/ 来源: https//cloud.google.com/appengine/docs/flexible/custom-runtimes/

  1. Config application for Google App Engine. Google App Engine的配置应用程序。 See https://cloud.google.com/appengine/docs/flexible/custom-runtimes/ 请参阅https://cloud.google.com/appengine/docs/flexible/custom-runtimes/

  2. Use Dockerfile for Elixir ( https://elixir-lang.org/ ), pick one of these: https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=elixir&starCount=0 将Dockerfile用于Elixir( https://elixir-lang.org/ ),选择以下选项之一: https ://hub.docker.com/search/?isAutomated =0& isOfficial =0& page =1& pullCount =0& q = elixir & starCount =0

  3. Deploy Dockerfile to Google App engine. 将Dockerfile部署到Google App引擎。

  4. Use Google Cloud Storage JSON API to interactive with Google Cloud storage service by Elixir code via JSON: https://cloud.google.com/storage/docs/json_api/ 使用Google Cloud Storage JSON API通过JSON通过Elixir代码与Google Cloud Storage服务进行交互: https : //cloud.google.com/storage/docs/json_api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 ExpressJS 中使用 Google Cloud Platform 的错误报告 - Using Error report of Google Cloud Platform with ExpressJS 使用 Cloud IAM 限制对 Google Cloud Platform 中 App Engine 的访问 - Using Cloud IAM to limit access to App Engine in Google Cloud Platform Google云端平台 - 计划程序? - Google Cloud Platform - Scheduler? 通过Docker将Elixir App部署到Google Cloud - Deploying Elixir App to Google Cloud via Docker 如果您使用的是Google Cloud Platform,是否需要类似SiteLock的工具? - Is something like SiteLock necessary if you're using Google Cloud Platform? 将 Rasa 与 Google Cloud Platform 结合使用时,Dockerfile 中应该包含哪些内容 - What should go in the Dockerfile when using Rasa with Google Cloud Platform 无法使用 Google Cloud Platform 中的电子邮件功能发送电子邮件 - Can't send email using email function in Google Cloud Platform 使用模板时,Google Cloud Platform在哪里安装Wordpress? - Where does google cloud platform install wordpress when using template? Google Cloud Platform 上的 TLS 身份验证 - TLS Authentication on Google Cloud Platform Google Cloud Platform-统一库 - Google Cloud Platform - unified library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM