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 to selectively choose what files are pushed to the server

Hello, 

We created and built (dist folder) an angular application.

The backend of the application (php) is inside the 'api' folder

The 'assets' folder contains images and such

angular application.png

The application to work needs to have all the files all the files inside the 'dist' folder, plus 'api' folder, plus 'assets' folder.

Screen Shot 2021-02-05 at 9.18.48 AM.png

 

Question:

How do I make it so the repo in bitbucket has all the files (first image), but to the server I only push/pull the ones needed for the application to run (2nd image)?

 

 

1 answer

Hi Laura, nice question. What hinders you to only push the files you want to push to the server?

Hi Ktomk,
The repo in Bitbucket contains all the files, but I don't know how pull only a selective number of files from the server.

If the repo in Bitbucket contains the file structure shown on the the first figure, Is it possible to pull from the server:

a) the entire 'api' folder

b) the entire 'assets' folder (the one at root level)

c) all the files inside the "dist/[project_name]' (index.html, main, pily, runtme, styles) and place them at root level

d) all the files inside the 'dist/[project_name]/assets' and place them inside the 'assets' folder (numeral 'b' above).

 

How would I do that??

 

Thanks!

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

221 views 2 5
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