Skip to content

Instantly share code, notes, and snippets.

@mohsin
Last active July 26, 2017 06:57
Show Gist options
  • Save mohsin/b7f97de4b546cb95e5b387717538c6ad to your computer and use it in GitHub Desktop.
Save mohsin/b7f97de4b546cb95e5b387717538c6ad to your computer and use it in GitHub Desktop.
How to Setup OctoberCMS with Heroku
// Install heroku toolbelt
Moz at Saifurs-MacBook-Pro in ~/Desktop
$ brew install heroku
==> Downloading http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-c
######################################################################## 100.0%
/usr/local/Cellar/heroku-toolbelt/3.21.4: 449 files, 3.5M, built in 17 seconds
// Create an app
Moz at Saifurs-MacBook-Pro in ~/Desktop
$ heroku create octobertest
Creating octobertest... done, stack is cedar-14
https://octobertest.herokuapp.com/ | https://git.heroku.com/octobertest.git
// Prepare a local repo with the installer
$ cd ~/Projects/
$ mkd sample
$ wget https://github.com/octobercms/install/archive/master.zip
$ unzip master
$ touch index.php
$ mkd database
$ touch production.sqlite
$ cd ..
$ touch composer.json
Moz at Saifurs-MacBook-Pro in ~/Projects/sample
$ git init
Initialized empty Git repository in /Users/Moz/Projects/sample/.git/
$ heroku git:remote -a octobertest
// Content of composer.json
{
"require": {
"ext-gd": "*",
"hhvm": "~3.3",
"ext-sqlite3": "*",
"ext-pdo_sqlite": "*"
}
}
$ git add .
$ git commit -am "Created initial slug"
$ git push heroku master
$ composer up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment