ku4wvq
Last Updated: February 16, 2017
·
2.172K
· emgiezet
736212 10200976756252420 836055407 o

Silex Application on AppFog

AppFog is astonishing. Deployment take less than one minute. Configuration is super-fast and easy to do. You got 2GB of RAM for free up to 10 applications free forever! So your hosting don't cost you a dollar.

One thing that you really need is the .htaccess to move the directory to /web where you have your index.php

You can see the example application code on mine github public repo: https://github.com/emgiezet/iTVPDownloader

I got an example application that I created in less than 3 hours. With working code and app created on the AppFog.

Deploy looks like this:

cd your/app/dir
af login
af update yourAPPname

Less than one minute and your code is there and working. For the performance I've added the second instance of mine application. Requires only the app restart and its there. Two clicks and ready. As stunning as easy.
I got the lot's of traffic due to polish digg.com like site (wykop.pl). And they cannot kill the performance of the app.

Try it live at: http://itvpdownloader.mmx3.pl/ it works like charm.

What next?

Add Redis caching (super easy to configure)
Add MySQL(doctrine driven) database with some stats.

All of that without adding a dollar to the project.

Is there something more awesome to prototype your PHP startups?

Hell NO!

Say Thanks
Respond

4 Responses
Add your response

4517
Img 9931

hell yes ;) check out pagodabox.com

over 1 year ago ·
4535
736212 10200976756252420 836055407 o

@egorovpavel I've noticed that AppFog under apache benchmark or siege has strange behaviour it goes 503 and next 404. It happend when appfog instance gets over 100% CPU load for more than one minute. So you need to create more instances. I've checked the pagodabox only one thing scares me when your DB instance needs more then free 10MB it costs a lot.

over 1 year ago ·
4536
Img 9931

yep, but this is only development environment just like on AppFog. Also check out AWS free tier for 12 months http://aws.amazon.com/free/

over 1 year ago ·
28613

You should also try out Cloudways for deploying Silex on a cloud hosting. This platform has a great UI. You don't need to manually setup OS, stack or php app. You can do it from their platform. Once you have launched a server, you can follow this guide to install Silex on the server. https://www.cloudways.com/blog/install-silex-on-cloud/

over 1 year ago ·