0

I deployed an application on AWS EC2, I'm using Capistrano for deployment. However, the production log on my local machine is empty. According to production.log empty on Rails 4 / Capistrano / Passenger / Nginx server (digital ocean), I removed rails_12factor from Gemfile in production, but it is still not working.

I actually really confused, because, according to many related replies on Stack Overflow, production log seems automatically appear in the production.log on my local machine, I'm wondering how it happens? If my assumption is incorrect, then where can I see the production log.

I used rails 4.2.2.

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367
AlexLuo
  • 458
  • 1
  • 4
  • 12
  • "where can I see the production log" - on production server. That EC2 box of yours. – Sergio Tulentsev Nov 24 '17 at 23:29
  • @SergioTulentsev how to do so, I tried search resources but I didnt find any tutorial on how to do so. – AlexLuo Nov 24 '17 at 23:30
  • What you want to google is "how to ssh into ec2 server" (or something similar). Once you're in the remote shell, the rest is easy. – Sergio Tulentsev Nov 24 '17 at 23:32
  • Maybe capistrano has shortcuts for this. Check their documentation too. – Sergio Tulentsev Nov 24 '17 at 23:33
  • @SergioTulentsev is this the answer? https://stackoverflow.com/a/25693476/8521403 , this guy mentioned about a path "public/system", is the dir on my remote server or on my local machine? – AlexLuo Nov 24 '17 at 23:36
  • 2
    No, the tip from that answer won't help make production.log appear on your local machine. In fact, you might as well give up this idea now. This is just not done. To get production log, you'll have to ssh into production box, one way or another. (or use a log shipping/aggregation service, but that's next step architecture) – Sergio Tulentsev Nov 24 '17 at 23:44

0 Answers0