Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's taking too much time to deploy #578

Open
venkimithu opened this issue Jun 3, 2020 · 8 comments
Open

It's taking too much time to deploy #578

venkimithu opened this issue Jun 3, 2020 · 8 comments
Labels
ci In connection with CI (bitbucket pipelines, …) question

Comments

@venkimithu
Copy link

Deploying very slow

  • For uploading 3Mb files it's taking 25 minutes.
  • Please help if any configuration is required.

YML

on: push
name: Publish Website
jobs:
  FTP-Deploy-Action:
    name: FTP-Deploy-Action
    runs-on: ubuntu-latest
    steps:
    - uses: actions/[email protected]
      with:
        fetch-depth: 2

    - name: Use Node.js 12.x
      uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    
    - name: Build Project
      run: |
        npm install
        npm run build --if-present
        
    - name: List output files
      run: ls

    - name: FTP-Deploy-Action
      uses: SamKirkland/[email protected]
      with:
        ftp-server: ftpes://103.90.243.77/public_html/test/
        ftp-username: ${{ secrets.FTP_USERNAME }}
        ftp-password: ${{ secrets.FTP_PASSWORD }}
        git-ftp-args: --insecure
        local-dir: dist
@LukasFritzeDev
Copy link
Collaborator

Looks like you try to deploy a node project with a node_modules directory. This are usually a lot of small files which takes relatively much time. Currently there is no way to avoid this completely. But You can try to optimize the upcoming sync by setting up your .ftp-include file to sync the modules only if the packages.json changed. Since you didn't give any detail here about your configuration, so it’s just a guess. Have a look at the manual for details about this.

@LukasFritzeDev LukasFritzeDev added ci In connection with CI (bitbucket pipelines, …) question labels Jun 7, 2020
@venkimithu
Copy link
Author

HI, I am not uploading node_modules directory.

.git-ftp-include
 !dist/
.git-ftp-ignore
package-lock.json
node_modules/

@sarah-j-smith
Copy link

I've got this issue too. 5000+ files. I can do it with a git push in a few minutes. FTP is still running after 90 minutes.

@atelierlabo
Copy link

I'm facing this issue too. It's taking too long to upload.

@davordragic
Copy link

image

This push took 4min and 1s.
Sounds a lot for few files.

@twofingerrightclick
Copy link

twofingerrightclick commented May 31, 2023

There has to be a pro way to do this! 2+hrs for my node app deploy is super bad (but the app is 55k files so it is stupid to upload sequentially) Anyone have the pro solution. Can deploys be done with zip? I am targeting Azure Web App. I bet I can deploy via zip... update: aha! Deploy a ZIP package to Azure Web App. Overall see if your host can take zip files. Zip your app before deploy.

@davidrodma
Copy link

It's not just deployment that is slow, if you have a lot of files to upload in production it's also slow because the files are uploaded one by one. Ideally, before uploading, compress into a single file to upload and then on the remote server they are uncompressed in their respective directories.

@XPMUser
Copy link

XPMUser commented Sep 1, 2023

I have the same problem with xpmuser.github.io for 2 things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci In connection with CI (bitbucket pipelines, …) question
Projects
None yet
Development

No branches or pull requests

8 participants