Single command deployment with Bitbucket pipelines and pm2 ??

Hello everyone!!

I'm a junior fullstack web dev, started first job 2 months ago, with little to no knowledge ( they were fully aware ) .

I integrated well in my office and they started assigning me bigger and more important tasks, but could eventually figure out.

Most of my knowledge is frontend and backend api services, and I still kinda lack a lot the deployment part of it. I mostly relied on local deployment in my own learning and have only used docker.

A task that kinda got assigned to me without any priority ( friendly collegues ) has been to build a kind of pipeline to deploy our software to our client, we are in italy and the client is in Asia.

Our current workflow is kinda terrible, we have the package.json command to compile the code with the right environment variables and directory output, then open a remote desktop ( windows ) in a local machine that inside has a remote desktop running directly to our client's hardware ( another windows ).

They just clone the old folder flagging it as "BACKUP_frontend..." and pasting the new compiled folder over the current running one.

We use pm2 to spin the services ( multiple node instances for the backend and the frontend is in the same directory )

Is it possible and where could I find resources on how to build this kinda of pipeline that could automate this kinda of workflow??

Can bitbucket pipelines trigger the compiled code to be dowloaded to the client's machine in that specific directory and run the pm2 commands to stop and restart the service??

My collegues already tried and failed, but they're not that well versed in english, and I only stumble upon various workflows involving docker

  • All
  • Subscribed
  • Moderated
  • Favorites
  • devops
  • tacticalgear
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • Durango
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • mdbf
  • khanakhh
  • kavyap
  • everett
  • provamag3
  • modclub
  • Leos
  • cubers
  • ngwrru68w68
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • anitta
  • megavids
  • normalnudes
  • tester
  • JUstTest
  • lostlight
  • All magazines