intercity-next icon indicating copy to clipboard operation
intercity-next copied to clipboard

How to run Rails on IC - Documentation

Open jvanbaarsen opened this issue 8 years ago • 14 comments

Since we don't want to have platform specific defaults in IC, we should put this information in Platform specific documentation.

jvanbaarsen avatar Jan 18 '16 14:01 jvanbaarsen

Maybe we can change this topic to a "How to run Rails on IC" issue and list all the steps we need to document for that?

michiels avatar Jan 18 '16 14:01 michiels

:+1: Good suggestion :-) Done!

jvanbaarsen avatar Jan 18 '16 14:01 jvanbaarsen

Suggestions (these are all my current things that are undocumented or the UI is not telling me how to do things when hosting a basic web app)

  • Add SECRET_KEY_BASE
  • How to link + set up the Database connection
  • How to configure the web runner (puma or else) via Procfile

michiels avatar Jan 18 '16 14:01 michiels

Addition:

  • Use > 1GB of memory as default

michiels avatar Jan 19 '16 15:01 michiels

Addition:

  • How to migrate on deploy (ie with the rake hook)

michiels avatar Jan 20 '16 14:01 michiels

Addition:

  • Tweak Puma settings (our own Puma is a very large config for a simple server)

michiels avatar Jan 25 '16 11:01 michiels

More specific to my previous comment:

  • Make sure people use the correct number of threads/workers for Puma config. For instance, on a single-core system ($10 Digital Ocean Droplet) you must only configure 1 thread because it has one core.

michiels avatar Jan 26 '16 13:01 michiels

Turns out, SECRET_KEY_BASE is not required, I believe the Heroku buildpack sets this value for us.

jvanbaarsen avatar Jan 27 '16 13:01 jvanbaarsen

@michiels Would it make sense to also port the documentation you wrote on the website to the internal docs of IC?

jvanbaarsen avatar Sep 08 '16 14:09 jvanbaarsen

@jvanbaarsen Definetely! Do you think it would be good to just use the same markdown from the site for in-app documentation and sync it some way?

michiels avatar Sep 08 '16 18:09 michiels

@michiels Hm, We can see if the markdown works correctly. For me it is important that the documentation in IC itself is leading. So we have to create it here, and then sync (parts) to the website.

Do you have suggestions for how to do this?

jvanbaarsen avatar Sep 09 '16 05:09 jvanbaarsen

@jvanbaarsen Let me port the documentation to this repo, then I'll write a script in the Jekyll site to keep it in sync

michiels avatar Sep 09 '16 07:09 michiels

@michiels Perfect! I assigned you to this issue.

jvanbaarsen avatar Sep 09 '16 07:09 jvanbaarsen

:+1:

michiels avatar Sep 09 '16 07:09 michiels