![](/img/trans.png)
[英]How to zip a folder in node js application & after zip downloading start?
[英]How to start a node application in CentOS
我正在嘗試通過udacity的教程學習骨干。 有兩個鏈接用於安裝此應用程序。
在FEF-UdaciMeals-Backbone
,說明告訴我這樣做:
Set up the project
clone this repo
cd into the newly cloned project
install Bower dependencies via bower install
Set up the server
clone the backend server
launch the binary for your platform
don't forget the --www flag pointing to the UdaciMeals Backbone project you just cloned above
check out that project's Running the server section of its README for specific details
View the app
Using your favorite browser, load http://localhost:8000/ and 💥
對於FEF-UdaciMeals-Backbone-Server
項目, Readme.md
的代碼段具有以下指令:
The binaries directory contains builds for Windows, Mac OS X ("darwin"), and Linux.
Run the appropriate server program to start the server, supplying
the --www= flag to point to your front-end code
(e.g. on Mac OS X use ./server_darwin_amd64 --www=../../FEF-UdaciMeals-Backbone)
該示例顯然是在Mac Osx中使用的,但是如何在CentOS中完成此命令./server_darwin_amd64 --www=../../FEF-UdaciMeals-Backbone
?
查看倉庫中的binaries
目錄 ,答案似乎是:
./server_linux_amd64 --www=../../FEF-UdaciMeals-Backbone
這似乎假設您從同一binaries
目錄本身運行命令,並且從那里到FEF-UdaciMeals-Backbone
目錄的相對路徑已指定。 (如果您跟隨本教程一起學習,則后一種假設將是正確的。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.