1. Tomas Beran
  2. PowerBuilder
  3. Friday, 12 August 2022 08:38 AM UTC

Hi

Is it possible to force active mode for deploying to the web server? I've a router between me and the webserver which I don't manage and the only working way is active mode (PORT).

Is there a config file or a registry key which controls PB internal FTP client behavior?

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 August 2022 14:24 PM UTC
  2. PowerBuilder
  3. # Permalink

Just have your project save to local disk instead, and then use a separate FTP client like FileZilla to upload the app to your Web server.  The built-in FTP option is just for convenience and won’t be as flexible as a separate FTP client.

Comment
There are no comments made yet.
Tomas Beran Accepted Answer Pending Moderation
  1. Tuesday, 16 August 2022 12:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi

I've created powershell script which can be called directly from PB IDE or a deployment batch. So if someone is interested in then there is the script attached.

pbdeploy.cmd is a batch for easier use in PB toolbar custom button.

 

In the PB custom button there should be:

pbdeploy.cmd export\Project_Installer.zip

The initial setup (server name, credentials) has to be made in pbdeploy.ps1

 

How to use it:

1. Download and extract pbdeploy.zip

2. Edit pbdeploy.ps1 header

3. Create a new toolbar custom button in PB IDE with commandline <full_path_to_pbdeploy.cmd> <full_path_to_your_deployment>

 

*edit small modification for "local server deployment" support.

Attachments (1)
Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 16 August 2022 14:17 PM UTC
Thanks for sharing!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.