久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <bdo id='RnFkK'></bdo><ul id='RnFkK'></ul>
    <legend id='RnFkK'><style id='RnFkK'><dir id='RnFkK'><q id='RnFkK'></q></dir></style></legend>

    <small id='RnFkK'></small><noframes id='RnFkK'>

    <i id='RnFkK'><tr id='RnFkK'><dt id='RnFkK'><q id='RnFkK'><span id='RnFkK'><b id='RnFkK'><form id='RnFkK'><ins id='RnFkK'></ins><ul id='RnFkK'></ul><sub id='RnFkK'></sub></form><legend id='RnFkK'></legend><bdo id='RnFkK'><pre id='RnFkK'><center id='RnFkK'></center></pre></bdo></b><th id='RnFkK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RnFkK'><tfoot id='RnFkK'></tfoot><dl id='RnFkK'><fieldset id='RnFkK'></fieldset></dl></div>

    1. <tfoot id='RnFkK'></tfoot>

      如何在 pm2 中使用 Grunt/Gulp?

      How to use Grunt/Gulp with pm2?(如何在 pm2 中使用 Grunt/Gulp?)

      <small id='5L5Av'></small><noframes id='5L5Av'>

        <bdo id='5L5Av'></bdo><ul id='5L5Av'></ul>
            <tbody id='5L5Av'></tbody>

              <tfoot id='5L5Av'></tfoot><legend id='5L5Av'><style id='5L5Av'><dir id='5L5Av'><q id='5L5Av'></q></dir></style></legend>
              1. <i id='5L5Av'><tr id='5L5Av'><dt id='5L5Av'><q id='5L5Av'><span id='5L5Av'><b id='5L5Av'><form id='5L5Av'><ins id='5L5Av'></ins><ul id='5L5Av'></ul><sub id='5L5Av'></sub></form><legend id='5L5Av'></legend><bdo id='5L5Av'><pre id='5L5Av'><center id='5L5Av'></center></pre></bdo></b><th id='5L5Av'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5L5Av'><tfoot id='5L5Av'></tfoot><dl id='5L5Av'><fieldset id='5L5Av'></fieldset></dl></div>
              2. 本文介紹了如何在 pm2 中使用 Grunt/Gulp?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                pm2 是管理節點應用的好工具.它如何與 grunt/glup 一起使用?谷歌搜索 20 分鐘后,我沒有找到任何有用的線索.

                pm2 is a great tool to manage node apps. How does it work with grunt/glup ? I didn't find any useful clues after Googling for 20 minutes.

                推薦答案

                如果我理解你的問題,看來你想部署你的應用程序.

                If I understand your question well, it seems you want to deploy your app.

                由于 pm2 0.9 部署可以使用 pm2 deploy 參見自述文件.

                Since pm2 0.9 deployment can be done with pm2 deploy see README.

                在 grunt/gulp 的情況下,我看到兩個選項:

                In the case of grunt/gulp, I see two options:

                1. 你已經提交了你的 node_modules.使用 pm2 deploypost-deploy 部分運行您的 gulp 進程:

                1. You've your node_modules comitted. Using pm2 deploy run your gulp process from the post-deploy section:

                "post-deploy" : "node ./node_modules/gulp/bin/gulp.js ./GulpFile.js && pm2 startOrRestart ecosystem.json --env production"
                

              3. 使用將為您啟動 npm install 的基本腳本,您可以使用 package.json 來 grunt/gulp:

              4. Using a basic script that will launch npm install for you, you could use the package.json to grunt/gulp:

                "scripts": {
                    "test": "echo "Error: no test specified" && exit 1",
                    "start": "node server.js",
                    "postinstall": "./node_modules/bower/bin/bower -q -s -f install && ./node_modules/gulp/bin/gulp.js"
                },
                

              5. 我的 gulp 通常需要 bower 來縮小腳本,所以我只保留它作為示例.

                My gulp generally needs bower to minify scripts so I left it only for example purpose.

                您可以結合這兩個選項讓 pm2 deploy 安裝您的 npm 腳本,并在 package 中有一個 postinstall 腳本.json.

                You may combine the two options to let pm2 deploy install your npm scripts and have a postinstall script in the package.json.

                請注意,我使用的是 gulp 模塊二進制文件的相對路徑!如果沒有安裝全局模塊,這只是為了避免出現問題.

                Note that I'm using the relative path to the gulp module binary! It's just to avoid an issue if the global module is not installed.

                現在,在我看來,要在生產中部署應用程序,最好簡單地擁有一個 git 分支,其中所有內容都已預先打包,這樣您只需克隆該分支就可以了.它還可以縮短部署時間,尤其是當您使用 gulp 或 grunt 運行測試時...

                Now, in my opinion to deploy an application in production it's better to simply have a git branch where everything is pre-gulped so that you only clone that branch and you're good to go. It also improves the deploy time, especially if you're running tests with gulp or grunt...

                希望這已經足夠清楚了!

                Hope that's clear enough!

                這篇關于如何在 pm2 中使用 Grunt/Gulp?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

                1. <tfoot id='CajY8'></tfoot>
                  1. <legend id='CajY8'><style id='CajY8'><dir id='CajY8'><q id='CajY8'></q></dir></style></legend>

                    <small id='CajY8'></small><noframes id='CajY8'>

                      <tbody id='CajY8'></tbody>

                    • <bdo id='CajY8'></bdo><ul id='CajY8'></ul>

                          <i id='CajY8'><tr id='CajY8'><dt id='CajY8'><q id='CajY8'><span id='CajY8'><b id='CajY8'><form id='CajY8'><ins id='CajY8'></ins><ul id='CajY8'></ul><sub id='CajY8'></sub></form><legend id='CajY8'></legend><bdo id='CajY8'><pre id='CajY8'><center id='CajY8'></center></pre></bdo></b><th id='CajY8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CajY8'><tfoot id='CajY8'></tfoot><dl id='CajY8'><fieldset id='CajY8'></fieldset></dl></div>
                          主站蜘蛛池模板: 中文字幕一区二区在线观看 | 精品国产精品国产偷麻豆 | 国产一级影片 | 久久免费视频观看 | 国产成人免费视频网站视频社区 | 成人在线一区二区 | 五月天婷婷综合 | 中文字幕第49页 | 亚洲综合天堂网 | 日本人和亚洲人zjzjhd | 国产一区视频在线 | 天天看片天天干 | www.一区二区三区 | 黄网站免费在线观看 | 一区二区三区韩国 | 91免费福利视频 | 青青草av | 天天久久 | 国产99久久| 91亚洲国产成人久久精品网站 | 日韩在线视频免费观看 | 久久亚洲欧美日韩精品专区 | 精品国产乱码久久久久久影片 | 日韩综合一区 | 精品久久久久久亚洲精品 | 亚洲精品在线免费看 | 欧美大片黄 | 亚洲精品久久久久久久久久吃药 | 在线精品国产 | 午夜精品久久久久久久久久久久久 | 欧美一区两区 | 亚洲二区在线 | 天堂中文在线观看 | 国产日韩久久久久69影院 | 就操在线| 国产精品久久久久久久三级 | 一级黄色片网址 | 精品免费在线 | 久久精品久久精品久久精品 | 国产欧美日韩精品一区二区三区 | 久久机热 |