Hi, I have this issue: basically the pipeline failed when the Deploy step is executed, because it can't find the dist folder. Meaning LOCAL_PATH can't find that directory.
In fact, you can see that in Artifacts tab is empty.
My root project is compose of:
- docker folder
- source folder -> this one contains my Vue App. [public, src, package.json, etc]
Could anyone please help me out to resolve the issue. Or please let me know where I am doing wrong. Thank you
Hi @Carbajal and welcome to the community.
Does the dist folder already exist in your repo, or is it generated during the build with the npm run build command?
I can see in the script of your first step that you first change directory to source and then run npm install and npm run build. So, if the folder is generated by the latter command, I believe it will be generated inside the source directory.
If this is the case, I believe you need to include that in the path for both artifacts and also the pipe:
So, in your bitbucket-pipelines.yml file, in the build step, you'll need to define:
artifacts:
- source/dist/**
and in the second step, in the pipe definition:
LOCAL_PATH: 'source/dist'
Could you give this a try and let me know if it works for you?
Kind regards,
Theodora
That's good to hear, thank you for the update and you are very welcome!
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.