Great video, thanks for putting it together! Just wondered if it's possible to have the master push upload to more than one SFTP or FTP account and how?
Excellent! thanks for the tutorial. I've implemented and works great, now have a question. We use gulp for building SASS and JS, how can add these commands in order to compile when I push to the repo?
This really helped me get an overall picture thanks. I was struggling to get all the bits working together. One thing I don't recall being mentioned here, and might have missed it, was that in my case I'd not set up any 'deployments' (Settings > deployments) so when the first pipeline ran I had an error saying "The environment 'master' in your bitbucket-pipelines.yml doesn’t match any environment defined in your settings" - I'd assumed I needed to use branch name in the 'deployment:' YAML setting becasue Travis had used 'staging' in his. Changing it to the name of one of the default deployment names in Settings > deployments fixed things. Obvious really.
Perfect tutorial. followed step by step and able to deploy my laravel project first time with pipeline. Thank you. One Question: If you have fresh copy to deploy folders then only files copy and folders don't copy to server and gives "Couldn't canonicalize: No such file or directory" error. Any Idea?
Hey, I want to create a pipeline that fetches data from my bitbucket repository and automatically push to my local system in windows. How we can do it. any Guidance?
Can I ask a quick question, since I'm very new to CI/CD and just getting to know the workflow I'm wondering. If I make a Wordpress theme using NPM packages, am I able to just place my package.json file in my repository, than run 'NPM install' and when that's finished push all the files to my server via (S)FTP? Or should I include all my files in the repository?
Hi Jelle! Great question. So there are a couple different things here: 1. You don't want to include your npm files (node_modules folder) in your repo. I'm pretty confident in saying it should never be in your repo. And put it in your .gitignore file so that it won't accidentally be pushed. 2. In a pipeline, you would want to run npm install as a step in that pipeline to install the packages before it deploys. If I instead went the manual SFTP route I would probably not upload the npm packages, but ssh into the server and run it there. BUT there isn't really anything wrong with running npm install and then pushing everything. It will just take longer as those files can get pretty big. You can cache it in the pipeline (ex. Bitbucket support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/) 3. A lot of times people use npm packages as task runners (Gulp) or bundlers (webpack) in their wordpress theme build process. So for sass or to minify files or whatever. In this case, npm packages are only used PRE deployment. And in that case, you dont need to include them in the deployment either. Just wanted to mention that scenario. Hope that answers your question. If not, let me know.
@Travis Media Thank you for replying Travis, really appreciate it. You're right in saying most of the times the NPM packages are task running indeed. I can not think of any theme I made with NPM packages actually needed in the production environment. I have a PHP application that uses NPM packages, and when I saw your video I tried to make the question applicable to your video. Either way, thanks for setting me on the right track. I'll contact my hosting partner to get SSH access to my server so I can install t he packages directly on the server.
The video only covers the file deployment. How do you deploy the database changes? In case of wp it is just as important as file deployment
You should use rsync with ssh. It will only upload the file that is changed or better use RSYNC Deploy pipe.
Great video, thanks for putting it together! Just wondered if it's possible to have the master push upload to more than one SFTP or FTP account and how?
Excellent! thanks for the tutorial. I've implemented and works great, now have a question. We use gulp for building SASS and JS, how can add these commands in order to compile when I push to the repo?
This really helped me get an overall picture thanks. I was struggling to get all the bits working together. One thing I don't recall being mentioned here, and might have missed it, was that in my case I'd not set up any 'deployments' (Settings > deployments) so when the first pipeline ran I had an error saying "The environment 'master' in your bitbucket-pipelines.yml doesn’t match any environment defined in your settings" - I'd assumed I needed to use branch name in the 'deployment:' YAML setting becasue Travis had used 'staging' in his. Changing it to the name of one of the default deployment names in Settings > deployments fixed things. Obvious really.
Perfect tutorial. followed step by step and able to deploy my laravel project first time with pipeline. Thank you. One Question: If you have fresh copy to deploy folders then only files copy and folders don't copy to server and gives "Couldn't canonicalize: No such file or directory" error. Any Idea?
Great vdo ...
Also upload vdo on bitbucket to windows remote server hosting on IIS ...
thanks for the nice video! want to see the aws ec2 case :D
Hey, I want to create a pipeline that fetches data from my bitbucket repository and automatically push to my local system in windows. How we can do it. any Guidance?
How do you sync database changes from local to remote server or vice versa ?
Very great and easy to follow video. Thank you so much!
Can I ask a quick question, since I'm very new to CI/CD and just getting to know the workflow I'm wondering. If I make a Wordpress theme using NPM packages, am I able to just place my package.json file in my repository, than run 'NPM install' and when that's finished push all the files to my server via (S)FTP? Or should I include all my files in the repository?
Hi Jelle! Great question. So there are a couple different things here:
1. You don't want to include your npm files (node_modules folder) in your repo. I'm pretty confident in saying it should never be in your repo. And put it in your .gitignore file so that it won't accidentally be pushed.
2. In a pipeline, you would want to run npm install as a step in that pipeline to install the packages before it deploys. If I instead went the manual SFTP route I would probably not upload the npm packages, but ssh into the server and run it there. BUT there isn't really anything wrong with running npm install and then pushing everything. It will just take longer as those files can get pretty big. You can cache it in the pipeline (ex. Bitbucket support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/)
3. A lot of times people use npm packages as task runners (Gulp) or bundlers (webpack) in their wordpress theme build process. So for sass or to minify files or whatever. In this case, npm packages are only used PRE deployment. And in that case, you dont need to include them in the deployment either. Just wanted to mention that scenario.
Hope that answers your question. If not, let me know.
@Travis Media Thank you for replying Travis, really appreciate it.
You're right in saying most of the times the NPM packages are task running indeed. I can not think of any theme I made with NPM packages actually needed in the production environment.
I have a PHP application that uses NPM packages, and when I saw your video I tried to make the question applicable to your video.
Either way, thanks for setting me on the right track. I'll contact my hosting partner to get SSH access to my server so I can install t he packages directly on the server.
Hi travis! Would you make a full playlist on ghost CMS?
Ohhh and thanks a lot for the video!
Muy buen tutorial 👍