You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello guys, I have a question and I hope someone can help me!
I have this pipeline:
#bitbucket-pipelines.yml
image: node:latest
pipelines:
default:
- step:
name: Build VUE Project
caches:
- node
script:
- yarn install
- yarn run build
artifacts:
- dist/**
- step:
name: Deploy to CPANEL
deployment: production
script:
- pipe: (....something)
variables:
USER: $ftp_user
PASSWORD: $ftp_password
SERVER: $ftp_host
REMOTE_PATH: $ftp_remote_path
It works and when pipeline is completed in my server prod i found my folder dist with my app.
But I would only files inside the folder dist.
I imagine to have in my root folder server production all files inside dist and not the folder dist(with all files inside).
Someone have some suggestions? Thank you
For everyone will have same problem the solution is to add this line inside step:
LOCAL_PATH: 'dist'
So, only the content of the directory dist will be deployed! Have a nice coding day :)
I'm trying to do this same thing, but can you just clarify where you put LOCAL_PATH? was it under the artifacts section? I'm trying variations but haven't found one that works just yet...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It didn't worked for me. Everytime I run pipeline dist folder is also created in Cpanel. I have added LOCAL_PATH: 'dist' under REMOTE_PATH.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.