Run Rails Engine standalone
如果我有一个可安装的 Rails 引擎,将它作为独立应用程序(不是任何其他应用程序的一部分)安装在某个端点的最小配置是什么?
这最??好只是一个简单的 Rack 应用程序,这样我就可以选择合适的 Web 服务器(独角兽、美洲狮等)。
由于您没有指定要使用的特定 Rails 引擎,我将创建一个示例。
1 2
|
$ rails plugin new blorgh —mountable
$ cd blorgh
|
现在,因为 rails 引擎是一个机架应用
- 谢谢,看起来不错!除了 Blorgh 不能在特定端点上挂载 (?)。我也有兴趣安装多个引擎(Blogh 和 Flogh :))。您介意更新答案以包含它吗?
-
@DmytriiNagirniak 你找到答案了吗?
来源:https://www.codenong.com/33726240/
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8882.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57