What Are Environment Variables ? Storing credentials like access keys, secret keys, SMTP passwords, etc in the source is never a good idea, especially in production; Because it may be vulnerable to hacks or you might want to share the source code with other developers. So, there are Environment Variables for that. We can use…
Continue ReadingTag: heroku
Deploying fails on heroku? here’s what you can do to fix
Use heroku logs Heroku logs often provide in-depth useful information for debugging your rails apps, it shows us the exact block of code where the bug exists, sometimes it can be because of a typo or a problem with gem versions or something else. We can also use heroku logs with –tail to continuously get…
Continue ReadingAdding custom error pages to our rails app
Default Error Pages Rails already comes with its own error pages which is okay but too simple, but we can add our own custom error pages, just to make it look a lot nicer, here’s a quick and easy way on how you can do that. Popular Examples The default error pages that comes with…
Continue Reading