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)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.