[英]Parse Dashboard on AWS and adding cloud code
I configured a parse server on my AWS elastic beanstalk using this guid I've tested it and it all works fine 我已经使用该GUID在我的AWS Elastic Beanstalk上配置了一个解析服务器,并且已经对其进行了测试,并且一切正常
Now I can't find a way to deploy parse dashboard on my server. 现在,我找不到在服务器上部署解析仪表板的方法。
I did deployed parse dashboard on my local host and connected it to the application on server, But this way I cannot manage (Add and remove) my apps. 我确实在本地主机上部署了解析仪表板 ,并将其连接到服务器上的应用程序,但是这种方式无法管理(添加和删除)我的应用程序。 Another problem is that parse dashboard missing cloud code on default, I found this on git, but I cant understand where do I add the requested endpoints, is it something like adding
app.use('/scripts', express.static(path.join(__dirname, '/scripts')));
另一个问题是,默认情况下解析仪表板缺少的云代码,我在git上找到了它 ,但我不明白我在哪里添加请求的端点,就像添加
app.use('/scripts', express.static(path.join(__dirname, '/scripts')));
on the index.js file? 在index.js文件上?
in order to deploy parse-dashboard to your EC2 you need to follow the Deploying Parse Dashboard section in parse-dashboard github page 为了将parse-dashboard部署到EC2,您需要遵循parse-dashboard github页面中的Deploying Parse Dashboard部分。
parse-dashbard github page parse-dashbard github页面
Please make sure that when you deploy parse-dashboard you are using https and also basic authentication (it is also part of the guide) 请确保在部署parse-dashboard时使用的是https和基本身份验证(这也是指南的一部分)
Now regarding the cloud code: the ability to deploy cloud code via parse CLI and to view the nodejs code in parse dashboard are not available in parse-server but those are parse.com features. 现在有关云代码:通过parse CLI部署云代码以及在parse仪表板中查看nodejs代码的功能在parse-server中不可用,但这些是parse.com功能。 Cloud code in parse-server is handled by modifying the main.js file which exist under the cloud folder and deployment should be done manually by you but the big advantage in parse-server cloud code is that you can use any NodeJS module that you want from there and you are not restricted to the modules that were used by parse.com .
解析服务器中的云代码是通过修改存在于云文件夹下的main.js文件来处理的,部署应由您手动完成,但解析服务器云代码的最大优势是您可以使用所需的任何NodeJS模块从那里开始,您将不受限于parse.com使用的模块。
Another point about the dashboard. 关于仪表板的另一点。 What you can do is to create an express application and then add parse-server and parse-dashboard as a middleware to your express application and deploy the whole application to AWS and then you can enjoy both parse-server (that will be available under the /parse path, unless you changed it to something else) and parse dashboard that will be available under the /dashboard path
您可以做的是创建一个快速应用程序,然后将parse-server和parse-dashboard作为中间件添加到您的快速应用程序中,然后将整个应用程序部署到AWS,然后您可以同时使用这两个parse-server(在/ parse路径,除非您将其更改为其他名称),然后解析/ dashboard路径下可用的仪表板
Enjoy :) 请享用 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.