This is a template project for deploying codeigniter 2.x to heroku in just a few steps.
Before start, make sure that you have git, composer, Heroku Toolbelt and of course php and apache installed on your system. For more information visit the the oficial docs at: https://devcenter.heroku.com/articles/getting-started-with-php follow the Introduction and Set up sections
- Clone this project:
$ git clone https://github.com/carloscarcamo/codeigniter2-heroku.git && cd codeigniter2-heroku
- Create your app on heroku:
$ heroku create <app-name>
- Now deploy your code:
$ git push heroku master
- Make sure your app is running
$ heroku ps:scale web=1
- Lastly open your website:
$ heroku open
That's all! you should have a running app on heroku :)
Note: I've removed the user_guide folder from the original Codeigniter package, but if you need it you can find it on the original repo: https://github.com/bcit-ci/CodeIgniter/tree/2.2-stable