12

angular フルスタックで作成された単純な角度付きプロジェクトをデプロイしたいと考えています。

https://github.com/DaftMonk/generator-angular-fullstack

私は試した :

yo angular-fullstack test

grunt build

次に、dist に server と public の 2 つのフォルダーを作成しました。

それらをLinuxサーバーにデプロイする方法は?

永遠に/ノードとnginxで??? プロジェクトを自己ホストしたい。

ありがとう

4

4 に答える 4

6

簡単で簡単なpm2も試すことができます。これには多くの便利な機能が付属しています。

https://github.com/Unitech/pm2

// Start new node process
$ pm2 start dist/server/app.js

// list all process
$ pm2 list
于 2015-08-10T12:52:32.627 に答える
-5

インストールgenerator-angular-fullstack:

npm install -g generator-angular-fullstack

新しいディレクトリを作成し、そのcd中に:

mkdir my-new-project && cd $_

yo angular-fullstackオプションでアプリ名を渡して実行します。

yo angular-fullstack [app-name]

ビルドのために実行gruntし、ビルドされたアプリのプレビューのために grunt serve for preview, andgrunt serve:dist` を実行します

于 2015-02-27T05:54:46.313 に答える