Although I've been working with Rails for about 3 years now I was never resposible for deploying apps and dealing with servers – embarrassing, right? – apart from a side project I used Heroku for, so I'm sorry if my questions seems to be trivial :)
I signed up with Hatch to deploy an app. I was wondering do Hatch provide a way to backup the database? Or is this something I need to takecare of? If so, any suggestions?
I'm using delayed_job for background jobs, I'm not sure how to start the worker when I deploy the app, locally I just do
rake jobs:work so do I need to add that somewhere in the Rails config files? or is is something done on the server-side? May be a Bash script?
I'm planing to go with DigitalOcean for hosting, the app is pretty simple and for the forseable future I don't expect crazy amount of traffic, should I go with 1 core or 2 cores? What about memory? Put in mind I'm going to be using background jobs whenever possible.
Any suggestions for managing logs? I want a simple way to be able to go through the logs, if I have to
Now if I want to
rails console do I need to
ssh into the server or does Hatch provide a shortcut for that?
Also played with, and have some answers:
1 There's a beta feature who supports backups of your PG DB (see menu left-hand, Backups)
3 For memory; 1GB is the minimum. Otherwise loads of errors.
5 No shortcut I am aware off. Possible can create a bash/zsh shortcut in your project folder:
ssh <name>@<ip> \\ cd <app-name>/current && bundle exec rails console?
Hey Karim! Excited you're moving to Hatch!
Jack's answers are all spot on.
Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.