我使用本教程(http://www.lemiffe.com/how-to-deploy-a-static-page-to-heroku-the-easy-way/)将我的静态HTML网站部署到Heroku ,我的照片赢了出现?它在本地完美运行所以我真的不明白为什么它在Heroku上部署时没有?
我也查找了stackoverflow提供的所有其他解决方案,对我来说没有任何用处.任何帮助都非常感谢
这是我的文件夹/文件的顺序(文件夹是大写的):
-RESUMEAPPCOPY
-home.html
-portfolio.html
-index.php
-aboutme.html
-PUBLIC
-IMG
-JS
-CSS
Run Code Online (Sandbox Code Playgroud)
图像代码:
<img src="/Users/erv/Desktop/MyProjects/resumeappcopy/public/img/PennUnitedWebsite.PNG" alt="PUSA-Icon" class="img-rounded" style="height: 300px;"/>
Run Code Online (Sandbox Code Playgroud)
每当我检查Heroku上的元素时,它说:
Failed to load resource: the server responded with a status of 404 (Not Found)
Run Code Online (Sandbox Code Playgroud)
如果图片应该是我有典型的破碎图像链接图片
对Objective-C很新,在Xcode中编程,我不太明白为什么我的声音没有播放.我按照本教程(http://www.youtube.com/watch?v=2mbCkIVF1-0)但由于某种原因我无法在iOS模拟器中播放我的声音.我使用的是故事板布局而不是nib文件,所以这可能是问题所在?我知道如何将我的按钮连接到我所拥有的故事板上,所以我很困惑,这个问题让我发疯.非常感谢任何帮助,如果我的代码错了,请指出我正确的方向,问题可能是微不足道的,无论哪种方式任何帮助都会很棒!再次感谢
SFViewController.m
#import <UIKit/UIKit.h>
#import <AVFoundation/AVAudioPlayer.h>
@interface SFViewController : UIViewController <AVAudioPlayerDelegate> {
}
-(IBAction)playSound1;
-(IBAction)playSound2;
-(IBAction)playSound3;
@end
Run Code Online (Sandbox Code Playgroud)
SFViewController.h
#import "SFViewController.h"
#import <AVFoundation/AVAudioPlayer.h>
@implementation SFViewController
-(IBAction)playSound1 {
NSString *path = [[NSBundle mainBundle] pathForResource:@"SeriouslyFunnySound1" ofType:@"wav"];
AVAudioPlayer* theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path]error:NULL];
theAudio.delegate = self;
[theAudio play];
}
-(IBAction)playSound2 {
NSString *path = [[NSBundle mainBundle] pathForResource:@"SeriouslyFunnySound2" ofType:@"wav"];
AVAudioPlayer* theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path]error:NULL];
theAudio.delegate = self;
[theAudio play];
}
-(IBAction)playSound3 {
NSString *path = [[NSBundle mainBundle] pathForResource:@"SeriouslyFunnySound3" ofType:@"wav"];
AVAudioPlayer* …Run Code Online (Sandbox Code Playgroud)