PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0
Showing posts with label angular6. Show all posts
Showing posts with label angular6. Show all posts

Tuesday, September 27, 2022

[FIXED] How to deploy the content of dist folder to the server root?

 September 27, 2022     angular6, bitbucket-pipelines, continuous-deployment     No comments   

Issue

I want to deploy all the files from dist folder to one of my folder in the server.

My bitbucket repository name is "test-project-app".

This is the script I have to deploy the application to the server.

script: # The script below will deploy the application to the webserver.
  - apt-get update
  - apt-get install ncftp
  - ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST $FTP_SITE_ROOT dist/*

These are my Repository variables

FTP_HOST: xxx.xxx.xxx.xxx
FTP_SITE_ROOT /public_html/test/

The above script automatically created folder "test-project-app" inside the test folder that contains all the files of dist folder. I want to deploy files of folder to test root.

How can I fix this?

Any help please. Thank You.


Solution

I had encountered the same issue before. Can you change

dist/*

into

dist/**/*

Hope this works for you.



Answered By - nas
Answer Checked By - Terry (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Older Posts Home

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Copyright © PHPFixing