Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I push to production with Pipelines?

For a few years now I've been using webhooks to hit an endpoint on my server (a digitalocean droplet) that git-pulls and then builds my frontend compiled .js files. I use PHP for backend and React/Svelte for front. This has been fairly janky and insecure throughout the years. Now I'm on a new server that doesn't have enough RAM to run the build command, so I look to Pipelines.

All I want to do is this:

  1. When I push to Master, run npm run build on the repo.
  2. Do a git pull on my server through Pipelines, getting all the new files from the push and the newly compiled .js file. I'm aware this should require an SSH Key, which I have.

Very simple, no automated testing. But I've gone through docs and I've watched a 30-minute video where people just seem to skip the whole "actually go to server" part. And maybe this is why: https://www.deployhq.com/ Do I really need another service to push to my server?

I have a pipeline working, I just don't know what to do with the final compiled .js file.

1 answer

1 accepted

1 vote
Answer accepted

Hello @VaelVictus ,

Simply speaking, Pipelines run commands of your scripts inside of specified Docker container, so you can do whatever that image can do. Nothing stops you from ssh-ing directly to your VPS or rsync-ing files over, or implementing any other delivery mechanism you can think of — right from your pipeline. Pipelines are aware of deployments, so you can get a nice overview of your environments without using any third party services.

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,826 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you