Using The SFTP Feature on PagodaBox


Today we are going to demonstrate the use of the SFTP (Secure File Transfer Protocol) feature on PagodaBox.  PagodaBox is a popular PaaS (Platform as a Service) provider which allows developers to host websites on a managed cloud platform, allowing easy scalability and flexibility. PagodaBox has been featured in our blog articles in the past, and it draws comparisons with Heroku and AppFog. This tutorial specifically helps solve a common misconception about PagodaBox: “Why doesn’t it have a FTP feature?”. The answer to that question is: “Yes, PagodaBox does have an SFTP feature and it is very easy to setup”.


At first, most developers would use the Git versioning system that allows you to clone, pull and push code to PagodaBox servers via a command line. But for some newbies, FTP seems to be an easier option, as dragging and dropping is more natural to everyday computer use.


Step 1:


The requirement for this tutorial is to have a PagodaBox account setup beforehand. If you haven’t already, you can create one new by visiting PagodaBox [dot] com. Once you have an account setup, you should create a demo app called ‘sample-app’.


Step 2:


Using The SFTP Feature on PagodaBox


The second step is to enable the form of code deployment. You can do this by clicking the app name you have on the Dashboard page. Once you are inside the app specific administration home page, click the Admin tab on the right hand side.


Over here, you must tick the radio button that says Vintage Mode (SFTP). You can setup details in the configuration box below. Don’t forget to click SAVE. After this, you should be ready to push your website on PagodaBox servers using SFTP (same thing as FTP but more secure).



Step 3:


Open up your favorite FTP client. Ours is Flow on Mac (Paid) but you can use FileZilla, which is free. Once you are inside the FTP client, go to the connect page and select SFTP as your Protocol. This is important.


Next up, fill in the rest of the information like host, username, port and password inside the FTP client’s connect page. Remember, this information should be identical to the one that you entered previously on the app’s Admin page. If authenticated successfully, you should be logged into your app ‘sample-app’ SFTP.


Using The SFTP Feature on PagodaBox



You can now drag and drop your code files into the code folder as shown below. But your code won’t be live immediately. There’s one more step.



Step 4:


After you have uploaded your code files into the code folder, you must do one final step before you site goes live. It’s called “Deployment”. Since PagodaBox keeps multiple versions of your code, you must go up on the app dashboard and click the green button that says “Deploy Latest”. This should now bring your site up live for the Internet to enjoy.





In the end, PagodaBox and SFTP go in very well together for beginners who are confused about the various technical operations required to perform a basic Git push. The end result is the same thing, but there are various techniques to deploy the code, and if Git is disturbing to you, it might be better off using the SFTP feature for now. Hope you enjoyed this tutorial.