简体   繁体   English

使用 nginx 设置 node.js 和 codiad

[英]setting up node.js and codiad with nginx

I was wondering if someone out there could help me with all of this?,我想知道是否有人可以帮助我解决所有这些问题?

I started of creating my ubuntuserver 14.04 with this link:我开始使用以下链接创建我的 ubuntuserver 14.04:

https://www.digitalocean.com/community/tutorials/how-to-install-a-mean-js-stack-on-an-ubuntu-14-04-server https://www.digitalocean.com/community/tutorials/how-to-install-a-mean-js-stack-on-an-ubuntu-14-04-server

then to turn it into a production server I then did this:然后把它变成一个生产服务器,然后我这样做了:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04

(the above works well to serve my node.js app) (以上适用于我的 node.js 应用程序)

But what I am wondering is how can I install and configure nginx to work with installing codiad so that i can access the node.js apps that i create on the same server, instead of using vim or nano...但我想知道的是如何安装和配置 nginx 以与安装 codiad 一起工作,以便我可以访问我在同一台服务器上创建的 node.js 应用程序,而不是使用 vim 或 nano...

Another question is that if i cannot install codiad, is there a way that i can use chrome dev editor to git push (i know that this can be done), to the node.js apps, I did follow alot of articles explaining how to do this, and i was able to set things up but it was like giving permission errors, could not make head or tales of it even if i did change permissions...另一个问题是,如果我无法安装 codiad,有没有一种方法可以使用 chrome dev 编辑器来 git push(我知道这可以做到),到 node.js 应用程序,我确实遵循了很多解释如何安装的文章这样做,我能够进行设置,但这就像给出了权限错误,即使我确实更改了权限,也无法理解它...

So i was wondering if anyone has configured Node.js and nginx and git push and clone to work all together, and maybe to install codiad on the same server to make coding easier?所以我想知道是否有人将 Node.js 和 nginx 以及 git push 和 clone 配置为一起工作,并且可能在同一台服务器上安装 codiad 以使编码更容易?

Hope some can help me..:)希望有人能帮助我..:)

From the "Requirements" part of Codiad's homepage:从 Codiad 主页的“要求”部分:

Codiad requires a minimal server installation with Apache2, PHP 5+ and basic r/w access to several directories. Codiad 需要使用 Apache2、PHP 5+ 和基本 r/w 访问多个目录的最小服务器安装。 There is no database requirement没有数据库要求

Since none of the linked tutorials mentions either Apache or PHP we are forced to assume that your server doesn't meet those requirements and that you simply can't install that pseudo IDE.由于没有链接的教程提到 Apache 或 PHP,我们被迫假设您的服务器不满足这些要求,并且您根本无法安装该伪 IDE。 If you really want that thing on your server the next step is rather obvious.如果你真的想在你的服务器上安装那个东西,下一步就很明显了。

For further questions regarding Codiad I suggest using their issue tracker instead of any Stack Exchange site.对于关于 Codiad 的更多问题,我建议使用他们的问题跟踪器而不是任何 Stack Exchange 站点。 You'll have a lot more chances of getting a useful answers there.您将有更多机会在那里获得有用的答案。

Installing a gimmicky pseudo-IDE on your server is useless .在你的服务器上安装一个花哨的伪 IDE 是没有用的 Instead:反而:

  • develop locally (ideally in a virtual machine that looks like your application server), using whatever IDE/text editor you are most comfortable with,使用您最熟悉的任何 IDE/文本编辑器在本地进行开发(理想情况下在看起来像您的应用程序服务器的虚拟机中),

  • use your favorite version control system to push your master branch on your actual server when ready.准备好后,使用您最喜欢的版本控制系统将 master 分支推送到您的实际服务器上。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM