Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to connect if it is shared hosting?

Edited

I am using FTP Deploy . Pipeline reject and failed to connect. While I am using shared hosting. Though I don't have separate IP address for my website. is there any possibility to fix this problem?

script:
  - pipe: atlassian/ftp-deploy:0.3.3
    variables:
      USER: 'username'
      PASSWORD: '********'
      SERVER: 'ftp.example.com'
      REMOTE_PATH: 'public_ci_cd/'

 

1 answer

0 votes

Hi @cheralathann ,

it depends on usage conditions of your hosting.

Are they provide such option for you?

Have you tried to connect to the hosting manually?

Yes I tried manually. It working fine. But couldn't able to connect through pipeline. Throwing authentication failed error.

@cheralathann If the authentication failed, it is a sign that network connection was already successful in the pipeline.

Verify you're using the correct credentials though.

For trouble-shooting turn on DEBUG (`DEBUG: true`).

Thank you so much @Oleksandr Kyrdan @ktomk Finally done :)

Actually its is removing and uploading all the files again instead of uploading only changed files.

How to deploy only changed files?

@cheralathann I'd assume the devil is in the details as so often. Please consult the manual of the lftp utility, it might already do that but your understanding what a changed file is might be different to the utility or what the utility can technically do on the level of FTP and  the underlying systems, e.g. the file-system inside the container or on the remote shared host.

Therefore it's important you read that up first as otherwise such questions tend to become too broad and too easy to misunderstand/too hard to answer. Yeah, and trouble-shooting.

@cheralathann Just seeing with the FTP-Deploy Pipe the optional

DELETE_FLAG

variable. Maybe if you set it to `false` you already have the behavior you're looking for?

For anything else the ftp-depoy pipe is using the `lftp` utility with the `mirror` command (in reverse, so uploading to the FTP server to mirror) and you can tweak this by the

EXTRA_ARGS

variable as outlined in the ftp-deploy project.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

88 views 7 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you