Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Kai Schwarz
    @papakai
    or provide source code snippets to us here, but I am pretty sure not much people are active and helping here
    André
    @andrecavallari
    Ok, thanks
    Now... I have another issue, trying to use pm2 to deploy, but post-deploy does not run npm commands, tels npm is not installed, anyone know about this issue?
    Sedric Heidarizarei
    @saeedhei
    Hi, This script run my index.js , If I had index1.js and index2.js, How Can I run 2 js file with pm2? "dev": "cross-env NODE_ENV=development nodemon --exec 'node --require @babel/register' src/index.js",
    Kai Schwarz
    @papakai
    @andrecavallari maybe it invokes any over shell than bash in background where npm is not availabe? you might try out if npm is available under sh which ist often a default shell. I am not familiar with pm2 deploy, maybe check if you can use the bash shell somehow or set it as config somewhere
    @saeedhei a pm2 process can only handle one os process. this means that you cannot run two scripts at once. you have to configure an additional app for this then
    but finally you have then dev1 and dev2 ... i don't see there a problem?
    Sedric Heidarizarei
    @saeedhei
    I'm confused, I Can run 2 project in 2 terminal in windows then why should I choose pm2?, I need run 2 project in one terminal or 1 server like heroku, Can I do That with pm2? do you have an example?
    Kai Schwarz
    @papakai
    @saeedhei you might try out cross-env NODE_ENV=development nodemon --exec 'node --require @babel/register' src/index1.js" && cross-env NODE_ENV=development nodemon --exec 'node --require @babel/register' src/index2.js"
    but i am really not sure if a) this works or b) it does what you want
    it will also not execute 2nd script if 1st one fails
    Sedric Heidarizarei
    @saeedhei
    I will want to run 2 telegram bot , Thanks, I will Check That.
    Kai Schwarz
    @papakai
    alternative: realize a nodejs script that handles both telegram bot instances, then you are fine
    @saeedhei
    André
    @andrecavallari
    I am trying to deploy with PM2, but all I get is "Deploy failed", but no error log
    nothing to help me to fix it =(
    Any idea?
    I just need to "activate" some logs to see the error and how to fix it
    Aigars Cibulskis
    @Azael05x
    Hey, I am trying to get use of pm2-dev with ecosystem file, and each of my applications have different watch and ignore_watch. But it does not seem to work when I run pm2-dev start ecosystem.dev.json. Is it even possible?
    Sourav Chatterjee
    @chattes
    Hi I am Starting my App using .json file and have configured Logging in the same
    Is it possible to programatically access the Logs
    in a JSON format maybe?
    Any help would be much appreciated
    Karthik Iyengar
    @karthikiyengar
    Is there any benefit to running cluster mode on a single core instance?
    Jemmy Phan
    @jemmyphan
    typescript user here?
    ever faced ts-node not loading tsconfig.json?
    Anthony Garo
    @agaro1121
    hey guys
    How do i set all logging to go to STDOUT ?
    yagamidev
    @yagamidev
    @agaro1121 You can use pm2 logs id
    or use pm2 monit
    nikhil jain
    @nikhilmodasiya
    @agaro1121 if you are using bunyan package then just skip streams portion empty.this will work
    David Richardson
    @daverich204

    Is it possible to start a rails server with pm2?

    In my ecosystem.config.js I've got something like:

    {
          name: 'rails-api',
          script: 'bundle exec rails s -p 3001 -b 0.0.0.0',
          cwd: './api',
          interpreter: 'bash',
         ...
    }

    I've tried using bash and also setting interpreter to none and running the binary ./api/bin/rails

    André
    @andrecavallari
    @daverich204, I also tryed to run rails server with pm2, but no success =(
    Konstantin Kostiuk
    @SET001
    hi guys, I'm trying to run serverless invoke inside pm2 but then i don't see lamda output in pm2 logs
    I'm not sure either this is pm2 issue or related to serverless-webpack I'm using
    I have created an issue there serverless-heaven/serverless-webpack#464
    can you please participate?
    TudorIoanMarin
    @TudorIoanMarin
    Hi guys, I need some help. I am running a typescript project, for dev I ran it with "nodemon --exec ./node_modules/.bin/ts-node -- ./server.ts" now I want to run it on a amachine with pm2 and I get promise errors for async await I guess error TS2468: Cannot find global value 'Promise'.
    error TS2705: An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your --lib option. I tries installing typescript with pm2 pm2 install typescript and it didn't work. Can anyoane suggest something, please?
    imjeen
    @imjeen

    I notice the part : Serve static file over HTTP.

    I use the command: pm2 serve ./dist/ 8080, and it be valid just for the SPA page (for the root index.html file, http://localhost:8080/).

    But I would like that it could also for other html files (like http://localhost:8080/other.html or http://localhost:8080/me/about.html). It just like a Nginx (a server engine ).

    The PM2 can do that ? and how should I do?

    I think it will be very convenient to developers. ( just for development)
    Gladson Robinson
    @gladsonrobinson
    @gladsonrobinson
    Hi
    On running pm2 on server am getting buffer error.
    buffer.js:269  13:38:10 throw err;  13:38:10 ^  13:38:10 RangeError [ERR_INVALID_OPT_VALUE]: The value "2147483648" is invalid for option "size"  13:38:10 at Function.alloc (buffer.js:278:3)  13:38:10 at new Buffer (buffer.js:180:19)
    ERR_INVALID_OPT_VALUE
    any on got any info on it
    Alan.He
    @alanhg
    Env variables undefined when starting with pm2
    my pm2 version is@latest 3.5.1
    any one has same issue
    Alan.He
    @alanhg
    I solved it
    add --env production
    stherrienaspnet
    @stherrienaspnet
    hello guy i have question about pm2 docker is it the right channel for that?
    stherrienaspnet
    @stherrienaspnet
    can someone assit me with docker and pm2?
    stherrienaspnet
    @stherrienaspnet
    pm2-runtime cannot find ecosystem.config.js...
    stherrienaspnet
    @stherrienaspnet
    it seems pm2-runtime cannot see docker volume
    stherrienaspnet
    @stherrienaspnet
    Hello guys, i have question about running docker -run with pm2 can someone help me?
    Arye Shalev
    @pantchox
    Hi guys, who ever has a blog or post on Medium stuff that are related to programming, I am working on a new publishing platform, its my side project and i worked reallllly hard on it - I would love for your feedback! if you love publishing and curating content - PLEASE PM ME :)
    if my message is not following chat room rules i will delete it! thanks.