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

Problem with Bitbucket pipeline

Hi everyone, 

Last two day I`m trying to upload my project (Angular & Node) I install code deploy on my ec2 also create S3 bucket (iam role and everything I have to ... ) 

So my problem begin when I try to run pipeline 

My bitbuket-pipline and appspace are the same as the link show https://medium.com/technext/bitbucket-to-aws-ec2-continuous-deployment-pipeline-using-aws-code-deploy-for-php-application-e39004243cd9 

I only add on script 

 - npm install

- npm run prod

and in console of my bitbucket I see that my application start process of build but on my server I dont get that file...

On my ec2 server I only get file that are on my branch but without files that was BUILD.

 

I think somehow I shoud add script file after "deployment" part of AWS (Sorry for my bad english)
 

1 answer

0 votes

Hi Cedo,

If I understand correctly, the zip file you are deploying includes only the files of the commit, but it is missing the build files?

If this is the case, then it sounds that the build output may be generated somewhere outside $BITBUCKET_CLONE_DIR, the directory where the repository is cloned into.

First, we need to know where the build output is saved, this is most likely set up in the package.json file.

When you know where the build output is saved, and if it is indeed outside $BITBUCKET_CLONE_DIR, then you'll need to move it inside the build directory before you zip its contents, with a command like the following:

mv <buildDirPath>/Build $BITBUCKET_CLONE_DIR

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
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...

3,717 views 10 16
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