Skip to content

How: Deploy to Heroku

HazardJ edited this page Apr 16, 2015 · 3 revisions

THERE IS AN EASIER METHOD - YOU CAN SET UP PULLS FROM A GITHUB ACCOUNT. from the Dashboard of Heroku, go to the application, then Deploy, then "Manual Deploy". Seems to work great.

#Need to modify the following:

CREATE AN ACCOUNT ON HEROKU

heroku.com

CREATE LOCALLY A FOLDER FOR YOUR WEB, GIVE IT A NAME THAT WILL LET YOU REMEMBER IT:

Create a folder on your local drive where you want to have this Site: Then, with Terminal - go in that folder:

From command line in that folder:

git clone https://github.com/heroku/php-getting-started.git

GO INTO php-getting-started:

$ cd php-getting-started

MAKE A MATCHING PLACE AT HEROKU:

heroku create

git push heroku master

heroku ps:scale web=1

CHECK THAT THE SITE EXISTS: heroku open

(MAKE A NOTE OF THE NAME OF THIS NEW SITE)

PASTE IN THE CONTENT OF THE APP, OR SYNC FROM GitHub.com/commonaccord/Org: Then, with your file manager, paste the CommonAccord app into the directory php-getting-started/web/ (note the /web ) (you can customize how much of the Docs you want).

DOMAIN NAMES: Heroku gives a goofy name to the site. You can make it part of the x.commonaccord.org world by letting us know what you want to call it, or can use your own domain name. To make Heroku respond, you have to tell it that that's what you are calling the domain. Add domain names if you are forwarding:

heroku domains:add www.startup.commonaccord.org

heroku domains:add startup.commonaccord.org

THEN, DO SOME WORK ON YOUR LOCAL VERSION.
(Don't do it on the Heroku version because it get thrown away each time the site goes to sleep.) WHEN YOU WANT TO PUSH YOUR LOCAL WORK TO THE HEROKU SITE:

git add --all git commit -m "some comment that summarizes the changes" git push heroku master

It will take a minute for the site to be relaunched.

Repeat from "THEN, DO SOME WORK ...."

Clone this wiki locally