Hello! In this video I'm using Vue.js 2, so I need to run "npm run build" to build the project assets that I'll be deploying to the FTP server. So it's a Vue command. These commands would depend on your project and what commands you need to run in order to deploy the app. 😊
but do I need to build it if it's a PHP website? Probably not I assume. How do I just take whatever files are in my repo and just send it through FTP to my server?
You don't need to build for a PHP website (unless you're using something like Composer). To do this, just leave only the "Deploy" job with the first step called "Checkout Repository" and the last step called "Sync files to hosting". 😄
Once Vue.js builds the project it creates a dist/ folder. This folder is not on GitHub because I put it in the .gitignore file to keep the folder from uploading, since these folders are not meant to be in version control
Hi, I dont know what cpanel is could you explain and I need to be able to upload and download files to a web server from my vue.js project. I am new to this area. So could you explain can I use my git repository without cpanel? I already have an ftp user account. I am a little confused about everything could you explain thank you
What is the difference between @main and @v2? I see actions/checkout@v2 used in the default file where you used actions/checkout@main - and you also used actions/upload-artifact@main. I'm just trying to understand what the difference is, not at all doubting that it works. ^^
Also, learn how to automate your code deploys using Firebase Hosting + GitHub Actions: ruclips.net/video/PUuyqbVtQTQ/видео.html
I love that the video is less than 5 mins and everything is explained. I recommend that you post a link to the code on your .yml file
Thank you so much Eli!
You've saved me so much time :)
So quick and easy tutorial
Thank you, i just had to add local-dir: ./dist/ at the end in order to upload only dist folder. Otherwise it uploads even my src folder
Thank you
My github action gives me the error :
Build ⛏
Process completed with exit code 254.
How can i fix this?
Why 'npm run build' ? is this an older version of npm? from 6 above i only have npm run prod. is this correct so?
Hello! In this video I'm using Vue.js 2, so I need to run "npm run build" to build the project assets that I'll be deploying to the FTP server. So it's a Vue command.
These commands would depend on your project and what commands you need to run in order to deploy the app. 😊
but do I need to build it if it's a PHP website? Probably not I assume.
How do I just take whatever files are in my repo and just send it through FTP to my server?
You don't need to build for a PHP website (unless you're using something like Composer). To do this, just leave only the "Deploy" job with the first step called "Checkout Repository" and the last step called "Sync files to hosting". 😄
What does the "dist" refer to? I assumed it was the folder of what you wanted to upload, but I couldn't find a folder named "dist" in your Github
Once Vue.js builds the project it creates a dist/ folder.
This folder is not on GitHub because I put it in the .gitignore file to keep the folder from uploading, since these folders are not meant to be in version control
But even if I remove folders and files from local and github, it remains in cPanel!
Hi, I dont know what cpanel is could you explain and I need to be able to upload and download files to a web server from my vue.js project. I am new to this area. So could you explain can I use my git repository without cpanel? I already have an ftp user account. I am a little confused about everything could you explain thank you
can you do it with Gatsby with Github action Wordpress and Github access token? is that possible?
Github Actions, really great. you can also do unit tests ? and if the tests fails, we don't deploy
Right! You can add the step to run the "npm run unit:test" command 🙂 (Or whatever command you need for testing)
What is the difference between @main and @v2? I see actions/checkout@v2 used in the default file where you used actions/checkout@main - and you also used actions/upload-artifact@main. I'm just trying to understand what the difference is, not at all doubting that it works. ^^
what about laravel app in shared host?
How to do it for multiple servers with different passwords n usernames?
did you found a solution for that ?
👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼
where is the url for the code?
github.com/EnterFlash/ftp-ci-cd Added it to the description, thanks!
deploy a laravel app to a ftp will be great
npm ERR! code EUSAGE is what I get. Googling says this need npm setup. I'm lost.