Question

I wanted to try the appFog free plan to tryout my application I developed in Yii,I checked the jumpstart on appFog section that says that Yii applications are now supported by appFog

However I have checked all the documentations about framework, only drupal and wordpress were available, I searched all over the internet but I couldn't find the best docs for it

Then I decided to try to upload both Yii framework folder and my application and include an index.php file that includes the myapplication/index.php file, which seemed to be a nice try but some assest and other classes in yii are configured to look for yii framework in the root directory causing my application to crash with Yii error but not php error

If anyone has already tried or know where I can find a nice tutorial about Yii on appfog, I would really appreciate that.

Was it helpful?

Solution

I was able to deploy a test app without doing anything tricky:

  1. Create a new php APP on AWS US East infrastruture from the appfog console

  2. Download the latest Yii tarball and extract it to a FOLDER

  3. Create test application:

    $ cd FOLDER/framework
    $ ./yiic webapp ../testdrive
    
  4. Push the changes:

    $ af update APP
    
    Uploading Application:
    Checking for available resources: OK
    Processing resources: OK
    Packing application: OK
    Uploading (71K): OK
    Push Status: OK
    Stopping Application 'APP': OK
    Staging Application 'APP': OK
    Starting Application 'APP': OK
    
  5. Open http://APP.aws.af.cm/testdrive/ in browser:

    Welcome to My Web Application
    
    Congratulations! You have successfully created your Yii application.
    
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top