Automatically upload changes to your FTP server from GitHub Actions

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 28

  • @elilopezdev
    @elilopezdev  3 года назад +1

    Also, learn how to automate your code deploys using Firebase Hosting + GitHub Actions: ruclips.net/video/PUuyqbVtQTQ/видео.html

  • @osawereao
    @osawereao 8 месяцев назад

    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

  • @anjalirana7203
    @anjalirana7203 3 года назад +2

    Thank you so much Eli!
    You've saved me so much time :)
    So quick and easy tutorial

  • @SpiritEdits
    @SpiritEdits 2 года назад +3

    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

  • @Nielsslieker
    @Nielsslieker 3 года назад +1

    My github action gives me the error :
    Build ⛏
    Process completed with exit code 254.
    How can i fix this?

  • @catalincatalin4512
    @catalincatalin4512 2 года назад +1

    Why 'npm run build' ? is this an older version of npm? from 6 above i only have npm run prod. is this correct so?

    • @elilopezdev
      @elilopezdev  2 года назад

      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. 😊

  • @skycrossbones
    @skycrossbones 3 года назад +1

    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?

    • @elilopezdev
      @elilopezdev  3 года назад +1

      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". 😄

  • @DirkieDurky
    @DirkieDurky 2 года назад +1

    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

    • @elilopezdev
      @elilopezdev  2 года назад

      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

  • @rezwansaki
    @rezwansaki 7 месяцев назад

    But even if I remove folders and files from local and github, it remains in cPanel!

  • @lilmila4533
    @lilmila4533 2 года назад

    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

  • @MTSLaos
    @MTSLaos 3 года назад +1

    can you do it with Gatsby with Github action Wordpress and Github access token? is that possible?

  • @Easyvideo
    @Easyvideo 3 года назад +1

    Github Actions, really great. you can also do unit tests ? and if the tests fails, we don't deploy

    • @elilopezdev
      @elilopezdev  3 года назад

      Right! You can add the step to run the "npm run unit:test" command 🙂 (Or whatever command you need for testing)

  • @mathiasfantoni2458
    @mathiasfantoni2458 3 года назад

    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. ^^

  • @levonorrr
    @levonorrr Год назад

    what about laravel app in shared host?

  • @verynice.mp4613
    @verynice.mp4613 Год назад

    How to do it for multiple servers with different passwords n usernames?

    • @Madgique
      @Madgique Год назад

      did you found a solution for that ?

  • @marcelohenriquedasilvafons781
    @marcelohenriquedasilvafons781 Год назад

    👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼👏🏼

  • @techman4396
    @techman4396 3 года назад +1

    where is the url for the code?

    • @elilopezdev
      @elilopezdev  3 года назад

      github.com/EnterFlash/ftp-ci-cd Added it to the description, thanks!

  • @pauloamserrano
    @pauloamserrano 10 месяцев назад

    deploy a laravel app to a ftp will be great

  • @brianthornton79
    @brianthornton79 Год назад +1

    npm ERR! code EUSAGE is what I get. Googling says this need npm setup. I'm lost.