Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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: 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.


Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

291 views 2 10
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