{"action":"created","issue":{"url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/9","labels_url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/9/comments","events_url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/9/events","html_url":"https://github.com/mattbrictson/capistrano-mb/issues/9","id":104843683,"number":9,"title":"Assets are not loading after deploying with capistrano-mb gem","user":{"login":"mazharoddin","id":6102465,"avatar_url":"https://avatars.githubusercontent.com/u/6102465?v=3","gravatar_id":"","url":"https://api.github.com/users/mazharoddin","html_url":"https://github.com/mazharoddin","followers_url":"https://api.github.com/users/mazharoddin/followers","following_url":"https://api.github.com/users/mazharoddin/following{/other_user}","gists_url":"https://api.github.com/users/mazharoddin/gists{/gist_id}","starred_url":"https://api.github.com/users/mazharoddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazharoddin/subscriptions","organizations_url":"https://api.github.com/users/mazharoddin/orgs","repos_url":"https://api.github.com/users/mazharoddin/repos","events_url":"https://api.github.com/users/mazharoddin/events{/privacy}","received_events_url":"https://api.github.com/users/mazharoddin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mattbrictson/capistrano-mb/labels/bug?","name":"bug?","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-04T07:42:29Z","updated_at":"2015-09-07T17:39:14Z","closed_at":null,"body":"As mentioned in other issue notes, I am facing issue with assets are not showing after deploy, no assets are loading in production environment, I observed that assets are getting created during deploy and public/assets directory exists with all compiled assets. but still some how all assets are blank if I access the site using browser.\r\n\t\t\t\r\nWebsite source showing below asset files after deployment.\r\n```\r\n<link rel=\"stylesheet\" media=\"all\" href=\"/assets/application.css\" data-turbolinks-track=\"true\" />\r\n<script src=\"/assets/application.js\" data-turbolinks-track=\"true\"></script>\r\n```\r\nBut actually assets directory has these assets compiled.\r\n```\r\napplication-5c0522c4c060a12a3d4c30ce1483529093f25e6617868a398f2e448697224744.js\r\napplication-ca5f438ed1ddd61c3b5bb692c7f81b514d747dd3872117dae933d113ebc7cb5b.css\r\n```\r\nI am not  sure why rails server is trying to load /assets/application.css file instead of actual asset file which is compiled during deployment.\r\n\r\nI am getting 404 error if I try to access /assets/application.css file manually , but able to access \r\n````\r\nhttp:///assets/application-ca5f438ed1ddd61c3b5bb692c7f81b514d747dd3872117dae933d113ebc7cb5b.css without any issue.\r\n````\r\nSame app  if I run  locally in production mode by setting \"config.serve_static_files = true\" in production.rb file, I see all assets are loaded properly without any issue.\r\n\r\nWebsite source if i run locally in production mode.\r\n```\r\n<title>CapistranoMb-modified</title>\r\n  <link rel=\"stylesheet\" media=\"all\" href=\"/assets/application-56662022853430abfa3a3d8322b2823c97ef745dcecd157d289c2091a981c00e.css\" data-turbolinks-track=\"true\" />\r\n  <script src=\"/assets/application-c02a6554b78e7a2637690a720e0dc4f7b0604aa83b0104f1dbb4ca824f1a380e.js\" data-turbolinks-track=\"true\"></script>\r\n  <meta name=\"csrf-param\" content=\"authenticity_token\" />\r\n<meta name=\"csrf-tok\r\n```\r\nBut same site if I deploy using capistrano-mb\r\n\r\n```\r\n<link rel=\"stylesheet\" media=\"all\" href=\"/assets/application.css\" data-turbolinks-track=\"true\" />\r\n<script src=\"/assets/application.js\" data-turbolinks-track=\"true\"></script>\r\n```\r\n\r\nHere is the erb file which is responsible for rendering the link and script tags.\r\n```\r\n<html>\r\n<head>\r\n  <title>CapistranoMb-modified</title>\r\n  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>\r\n  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>\r\n  <%= csrf_meta_tags %>\r\n</head>\r\n<body>\r\n```\r\n\r\nPlease let me know if any further details are require. Thanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/comments/138347125","html_url":"https://github.com/mattbrictson/capistrano-mb/issues/9#issuecomment-138347125","issue_url":"https://api.github.com/repos/mattbrictson/capistrano-mb/issues/9","id":138347125,"user":{"login":"mazharoddin","id":6102465,"avatar_url":"https://avatars.githubusercontent.com/u/6102465?v=3","gravatar_id":"","url":"https://api.github.com/users/mazharoddin","html_url":"https://github.com/mazharoddin","followers_url":"https://api.github.com/users/mazharoddin/followers","following_url":"https://api.github.com/users/mazharoddin/following{/other_user}","gists_url":"https://api.github.com/users/mazharoddin/gists{/gist_id}","starred_url":"https://api.github.com/users/mazharoddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazharoddin/subscriptions","organizations_url":"https://api.github.com/users/mazharoddin/orgs","repos_url":"https://api.github.com/users/mazharoddin/repos","events_url":"https://api.github.com/users/mazharoddin/events{/privacy}","received_events_url":"https://api.github.com/users/mazharoddin/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T17:39:14Z","updated_at":"2015-09-07T17:39:14Z","body":"Hi, \r\nOhh its really surprising, I too followed exact same steps except that I scaffold articles  and made articles#index as root route (I know this shouldn't matter). Also I am not using `dotenv-rails`  gem, instead I directly modified `application.rb` file with secret_key_base info. \r\n\r\nCan you please paste your `config/application.rb` file and `config/environments/production.rb` file.\r\nThank you for trying to recreate. tomorrow again I will re-try."}}