Deploy to a production/acceptance/test domain with Bitbucket Deploy

I am looking for an example of any kind to know how I am going to make deployments to a non-google cloud/amazon/heroku/whatever environment.

I got 3 environments:

- Testing
- Acceptance
- Production

They all run Direct Admin (I thought CentOS or something, pre-installed). They use SSH.

And I want to be able to deploy my repository, build my NPM and then put it on the wanted environment. But I have not been able to see how. I have been searching on Google and this forums for 2 days now, but I still have not found what I am looking for.

Can anyone point me in the right direction?

1 answer

I am not there yet, but I've come pretty far with setting up this functionality.

Step 1:
Create an image with composer, node, debian & php.
Step 2:
Set up the pipelines.yml
Step 3:
Install NPM & Composer and run the build commands
Step 4:
Put the build files in a artifacts folder.
Step 5:
Run another step with an image with rsync on it.
Step 6:
Rsync all files

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,936 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you