I have a PHP application on IBM Cloud that was created using the boilerplates.This application accepts files uploaded by user for processing. I upload my project files with the push command using IBM Cloud CLI. Can you please help me with below questions?:
How can I view project files on IBM Cloud?
Whenever I push any changes to the cloud, the folder on my system replaces the entire folder along with project files in IBM Cloud. What is the mechanism we have to backup the files before pushing changes or make sure the folder with files do not get replaced when we push changes?
Can we connect any FTP client like Filezilla so that I can view, upload, and take backup of the required fields?
Thanks in advance for your help.
Answer by Philippe Mulet (244) | Apr 04, 2018 at 08:20 AM
If you used the catalog boilerplates (assuming https://console.bluemix.net/catalog/starters/php?taxonomyNavigation=devops), you can use the built-in Cloud DevOps tools to help you.
In your app overview page (and before you push changes), you should see a Continuous Delivery box, with an ENABLE button. When you press this, it will automatically create a DevOps toolchain allowing you to browse the code and edit it, using a Git repo provisioned automatically for you, with a delivery pipeline automatically building and redeploying it on subsequent Git commits. Continuous Delivery can be used as a free servicer under the Lite plan.
You might also try the better flow for creating new apps using the App Services: https://console.bluemix.net/developer/appservice/dashboard (left nav: WebApps), which provides a link to generated boilerplate app code, and ability to add a DevOps toolchain again.
Answer by oliverusselldev (1) | Feb 12 at 08:03 AM
You can also use PHP SFTP library, like phpseclib. Using SFTP with phpseclib results in a more secure and reliable connection that could be easily used for file transfer and related operations on any server.