是否可以在 aws lambda 上 运行 groovy grails 应用程序
Is it possible to run a groovy grails application on aws lambda
我有一个简单的 groovy grails Web 应用程序,我可以在我的本地计算机上通过 grails-> 运行-app 命令行 运行 访问该 Web 应用程序(查看页面在 gsp 上)在本地主机上使用浏览器。可以 run/migrate 相同的应用程序到 AWS Lambda,这样我就可以为此创建一个 API 网关并从浏览器访问该应用程序。
我可以使用 gradle 构建来制作 .zip 文件。下面是 grails 应用程序的主要功能 运行s。该应用程序具有常规的 grails MVC 结构。
import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
}
为了 运行 应用程序无服务器,AWS lambda 的处理函数应该是什么,如果可能的话?提前致谢。
Is is possible to run/migrate the same application onto AWS Lambda, so
that I can create an API gateway for this and hit the application from
a browser.
否,但您可以将应用程序部署到 AWS,以便您可以从浏览器访问该应用程序。一种选择是使用 AWS Beanstalk。参见 https://guides.grails.org/grails-elasticbeanstalk/guide/index.html。
我有一个简单的 groovy grails Web 应用程序,我可以在我的本地计算机上通过 grails-> 运行-app 命令行 运行 访问该 Web 应用程序(查看页面在 gsp 上)在本地主机上使用浏览器。可以 run/migrate 相同的应用程序到 AWS Lambda,这样我就可以为此创建一个 API 网关并从浏览器访问该应用程序。
我可以使用 gradle 构建来制作 .zip 文件。下面是 grails 应用程序的主要功能 运行s。该应用程序具有常规的 grails MVC 结构。
import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
}
为了 运行 应用程序无服务器,AWS lambda 的处理函数应该是什么,如果可能的话?提前致谢。
Is is possible to run/migrate the same application onto AWS Lambda, so that I can create an API gateway for this and hit the application from a browser.
否,但您可以将应用程序部署到 AWS,以便您可以从浏览器访问该应用程序。一种选择是使用 AWS Beanstalk。参见 https://guides.grails.org/grails-elasticbeanstalk/guide/index.html。