Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

Adds Heroku deploy guide #314

Merged
merged 1 commit into from Jul 14, 2015

Conversation

stevedomin
Copy link
Contributor

WIP

This is not 100% done yet but I wanted to get some early feedback while I was finishing/polishing it.

In the last section I plan to add something about running iex console and running migrations.

I'm also wondering whether to use an app with Ecto as an example (instead of the Phoenix welcome app).

@lancehalvorsen
Copy link
Member

@stevedomin thank you very much for this! I'll be adding some comments inline, but this will be a great addition to the guides. :)

## FPO
### What we'll need

- a working application
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could have a full sentence here?

@stevedomin
Copy link
Contributor Author

Woah, thanks for all the comments @lancehalvorsen, will have a more thorough look tonight

@stevedomin stevedomin force-pushed the heroku-deploy branch 2 times, most recently from 9d4dab3 to 8360e9a Compare July 11, 2015 00:11
@stevedomin
Copy link
Contributor Author

@lancehalvorsen I went over all your comments and updated the guide. Can you let me know what you think now? Thanks a lot for the extensive review and sorry for all the bad english grammar

@lancehalvorsen
Copy link
Member

@stevedomin this is shaping up really, really well! The next step is for me to follow all the instructions line by line, as a reader would, to see if there is anything that needs clarification.

Also, no need to apologize whatsoever. :^) To paraphrase a recent Steve Klabnik tweet, writing documentation is really hard, and nobody wants to do it, but it's incredibly important. Your efforts here are really helpful. <3

The only thing we'll need for this guide is a working Phoenix application.

If you don't already have one, just run `mix phoenix.new hello_phoenix` in a terminal and you're good to go.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a good idea to prompt readers to git init their project right here if they haven't yet done so. It might also be useful to say that the reason we're doing that is the style of Heroku deployment we'll be doing is based on git.

@lancehalvorsen
Copy link
Member

@stevedomin we're nearly there! I just made a few comments after working through this from scratch on my own.

This is a big contribution that's going to be really useful for the community. Thanks so much!

We need to compile static assets for a successful Phoenix deployment. The [Phoenix static buildpack](https://github.com/gjaldon/heroku-buildpack-phoenix-static) can take of that for us, so let's add it now.

```console
$ heroku buildpacks:add https://github.com/gjaldon/phoenix-static-buildpack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phoenix-static-buildpack has been renamed to heroku-buildpack-phoenix-static and since you use https://github.com/gjaldon/heroku-buildpack-phoenix-static above, let's keep it consistent. :)

@stevedomin
Copy link
Contributor Author

@lancehalvorsen I fixed all the things you mentioned, plus made some changes here and there, might be worth having another read if you don't mind. Thanks!

@lancehalvorsen
Copy link
Member

@stevedomin thanks so, so much. This is a huge help, and you've been wonderfully patient through all of my fussy comments!

@gjaldon thank you as well for chiming in. Good to see you around again. :^)

lancehalvorsen added a commit that referenced this pull request Jul 14, 2015
@lancehalvorsen lancehalvorsen merged commit 247e085 into phoenixframework:master Jul 14, 2015
@dbackeus
Copy link
Contributor

Congrats for landing this contribution! 👍

Looking forward to see it on the guides page :)

@stevedomin stevedomin deleted the heroku-deploy branch July 14, 2015 12:18
@stevedomin
Copy link
Contributor Author

Awesome, looking forward to seeing it live!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants