Skip to content

rkononov/php_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Getting Started

  1. Set up proper credentials in config.ini (iron_worker,iron_mq and s3)
  2. Deploy to Phpfog or CloudControl
  3. Add any picture to IronMQ queue or in input box
  4. Wait until picture processed
  5. Profit!

##How to install app on clouds:

###AppFog

  • Create new Appfog cloud and new app
  • Clone Appfog app - 'git clone git_appgfog_path' (check Source Code section of Appfog)
  • Clone this repo 'git clone https://github.com/rkononov/php_example.git'
  • Copy all files from this repo folder to appfog application folder - 'cp php_example/* your_appfog_folder/ -r'
  • Set proper credentials in config.ini (you could get token and project_id from https://hud.iron.io/)
  • Redeploy appfog app - 'git add -A;git commit -m "first deploy";git push'
  • Open your app url in browser (you should see smth like this http://imageworkerdemo.phpfogapp.com/)

###CloudControl

  • Install cctrlapp: 'sudo easy_install cctrl'
  • Make folder for cloudcontrol app - 'mkdir cloudcontrol_app_folder'
  • Clone this repo 'git clone https://github.com/rkononov/php_example.git'
  • Copy all files from this repo folder to cloudcontrol_app_folder - 'cp php_example/* cloudcontrol_app_folder/ -r'
  • Set proper credentials in config.ini (you could get token and project_id from https://hud.iron.io/)
  • Go into cloudcontrol_app_folder - 'cd cloudcontrol_app_folder'
  • Create app -'cctrlapp APP_NAME create php'
  • Commit app - 'git add -A;git commit -m "first deploy"
  • Push app - 'cctrlapp APP_NAME/DEP_NAME push'
  • Deploy app - 'cctrlapp APP_NAME/DEP_NAME deploy'
  • Open your app url in browser (you should see smth like this http://iron2.cloudcontrolled.com/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages