如何在bitnami MEAN堆栈上设置MEAN(Angular 2 +)

我已经在MEAN(Angular 2+)堆栈中创建了一个项目。所以,我决定使用aws ec2用于托管,bitnami MEAN用于软件打包。我遵循了https://cloud.google.com/community/tutorials/deploy-mean-app-mongodb-replication上的教程。 我从github链接-https://github.com/cornflourblue/mean-stack-registration-login-example.git克隆了示例应用程序  按照教程中的建议使用angularjs,并且效果很好。但是当我尝试上传自己的项目时就会出现问题。我的项目使用Angular 2+,这给了我错误。

Error: Failed to lookup view "login" in views directory "/opt/bitnami/apps/myapp/htdocs/views"
    at Function.render (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/application.js:580:17)
    at ServerResponse.render (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/response.js:1012:7)
    at /opt/bitnami/apps/myapp/htdocs/controllers/login.controller.js:14:9
    at Layer.handle [as handle_request] (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/layer.js:95:5)
    at /opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/bitnami/apps/myapp/htdocs/node_modules/express/lib/router/index.js:275:10)

我想知道出什么问题了,即使我没有在视图目录中登录,也可能是我犯了一个错误,并且不知道如何从示例应用程序中完全擦除数据-https://github.com/cornflourblue/mean-stack-registration-login-example.git 。 现在,我找到了另一个使用angular 2-{{​​3}}的教程,但是他们正在使用两个实例,其中一个用于angular,另一个用于(mongodb和nodeJs)。现在,我的问题是如何擦除我使用的示例应用程序的数据(显然,我已经删除了项目文件夹),我可以将bitnami MEAN用于angular 2+应用程序,还是需要获得第二个实例中的两个实例。提前感谢。

timeyy 回答:如何在bitnami MEAN堆栈上设置MEAN(Angular 2 +)

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3164747.html

大家都在问