{"action":"created","issue":{"url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42","labels_url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42/comments","events_url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42/events","html_url":"https://github.com/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42","id":53448288,"number":42,"title":"Heroku Push Problems","user":{"login":"SamMatthews9","id":8835790,"avatar_url":"https://avatars.githubusercontent.com/u/8835790?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMatthews9","html_url":"https://github.com/SamMatthews9","followers_url":"https://api.github.com/users/SamMatthews9/followers","following_url":"https://api.github.com/users/SamMatthews9/following{/other_user}","gists_url":"https://api.github.com/users/SamMatthews9/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMatthews9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMatthews9/subscriptions","organizations_url":"https://api.github.com/users/SamMatthews9/orgs","repos_url":"https://api.github.com/users/SamMatthews9/repos","events_url":"https://api.github.com/users/SamMatthews9/events{/privacy}","received_events_url":"https://api.github.com/users/SamMatthews9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-05T21:12:11Z","updated_at":"2015-01-06T18:19:58Z","closed_at":null,"body":"Hey, I've been having a tough time pushing our app to Heroku.  All the HTML, CSS/Sass and JS functions load properly, but some of the files aren't linking properly.  Initially we had the audio files working when they were loaded directly to the local, but since they weren't on the internet, when I pushed them to Heroku none of the audio files loaded properly.  I tried using some different Heroku addons and gems, but I realized they weren't the right tools so I started to use S3 again. \r\n\r\nAll of the audio files are in a bucket, and should be publicly accessible.  Here is an example of one of them: https://s3.amazonaws.com/project3sequencer/audio_files/marimba_7.mp3\r\n\r\nI added those links directly to the seed file of each cell (in my current branch).  Again, the work on my local, but when I I try to push to Heroku I am getting a 404 loading error and it's not calling on the s3 public bucket but the same herokuapp/assets folder.  I'll attach an image below.  Could someone please help me out! Thanks! @harimohanraj89 @DrRobotmck @htella \r\n\r\n![screen shot 2015-01-05 at 4 04 04 pm](https://cloud.githubusercontent.com/assets/8835790/5620016/92514430-94f5-11e4-92fa-3926c149e231.png)\r\n"},"comment":{"url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/comments/68907267","html_url":"https://github.com/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42#issuecomment-68907267","issue_url":"https://api.github.com/repos/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42","id":68907267,"user":{"login":"SamMatthews9","id":8835790,"avatar_url":"https://avatars.githubusercontent.com/u/8835790?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMatthews9","html_url":"https://github.com/SamMatthews9","followers_url":"https://api.github.com/users/SamMatthews9/followers","following_url":"https://api.github.com/users/SamMatthews9/following{/other_user}","gists_url":"https://api.github.com/users/SamMatthews9/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMatthews9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMatthews9/subscriptions","organizations_url":"https://api.github.com/users/SamMatthews9/orgs","repos_url":"https://api.github.com/users/SamMatthews9/repos","events_url":"https://api.github.com/users/SamMatthews9/events{/privacy}","received_events_url":"https://api.github.com/users/SamMatthews9/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T18:19:58Z","updated_at":"2015-01-06T18:19:58Z","body":"When rendering all the cells onto the page (app.js) , I add the audio to\r\nthe div (for the button) like this: <code>\r\nvar purple_audio = $('<audio>').attr('id', 'purple_audio')\r\nvar purple_source = $('<source>').attr('src',\r\ndata.purple_note).attr('type', 'audio/mpeg'); </code>\r\n\r\nThe purple_note attribute for each cell is the s3 link in the seed.  I'm\r\nnot really sure how I would use that asset directly linked to the audio\r\ntag, unless I manually put it in for each cell (outside of the seed file).\r\n\r\n\r\nOn Tue, Jan 6, 2015 at 9:14 AM, Hari Mohanraj <notifications@github.com>\r\nwrote:\r\n\r\n> If you are using the asset_path helper, your web page will only look for\r\n> the files in your Rails assets. In order to look for the file in your s3\r\n> bucket, you will either need to have your web page source its assets\r\n> directly from\r\n> https://s3.amazonaws.com/project3sequencer/audio_files/marimba_7.mp3, for\r\n> example, or have your web page hit a particular route on your server, and\r\n> have your server fetch the audio file for you. Since your audio appears to\r\n> be public, thought, the former approach would work.\r\n>\r\n> <audio id=\"marimba-7\" src=\"https://s3.amazonaws.com/project3sequencer/audio_files/marimba_7.mp3\"></audio>\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/SamMatthews9/JavaScript-Motion-Activated-Midi/issues/42#issuecomment-68869643>\r\n> .\r\n>"}}