Github pages lose images - image

I'm working on a project currently that I had to completely reinitialize. I'm trying to push to gitub, and it works...but for some reason all of the images are broken accept for one. Anyone have any idea why this would be happening? Here is the url to see what is happening:
http://ryan8765.github.io/jessica/index.html

Believe I figured this out. When pushing a project to github the project becomes case sensitive and any links in your project that aren't case sensitive will be broke. Case sensitive isn't an issue with links locally (at least for me), but when it gets to github it is.

Related

Keep language option from previous page

I did multi-linguistic webpages with two language buttons on each page. It should work in the way when people click Next and their language option of the previous page maintains on the next page. It works like this on my local host, but when deploying it on Heroku the language option always turns back to the default language when clicking Next. I wonder if this problem is because something is missed when Heroku fetches my codes from git remote repository?
I also host the webpage on Linux server. Like on my local host, the problem doesn't happen on Linux server. I'm pretty sure the problem is with the git repository and/or Heroku. Thank you!
The problem is gone when I recently upload app to Heroku. When a language button is toggled, the language choice is carried to next page on Heroku. I tried to figure out how the problem is solved. There are two possible reasons: One is Heroku platform is somehow updated, the other could be some changes in my oTree codes. I attach some changes I made in my codes, in case someone got the same problem. Note that otree must be <5 for now, because otree 5.0 now is not compatible with Django and to develop multi-linguistic page, Django is very necessary.
Codes in requirements.txt:
-r requirements_base.txt
psycopg>=2.5.1
otree==3.0.9
Codes in requirements_base.txt:
numpy>=1.16.2
scipy>=1.1.0

Github pages jekyll images not loading

I'm trying to get my personal blog up and running on github pages, and for some reason I can't get any of the pictures to display on Github, even though it works locally.
Website: https://ryanstull.github.io/
Code: https://github.com/ryanstull/ryanstull.github.io
I tried suggestions for other similar questions, such as double checking capitalization and moving the images out of the assets folder into their own folder, but neither of those seems to do anything.
When I go the a url where I'm expecting a picture to be, https://ryanstull.github.io/images/posts/classhierarchy.png for example. I just get this error message, about the image containing errors, even though it works locally.
Any advice would be much appreciated.
So it turns out the problem was github pages and git LFS don't work together, and I was storing my pictures with git LFS.
https://zhouchenzc0824.github.io/2017/05/GitHub-pages-incompatibility-with-Git-LFS/
I was able to fix it by using a hard-coded link to the LFS's binary as suggested by this comment https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-334317440
For example, the link that I used for the picture that I posted in the question is https://media.githubusercontent.com/media/ryanstull/ryanstull.github.io/master/images/posts/classhierarchy.png?raw=true

Publish success but no changes on site?

I have a site where I am getting:
I had to do a full re-install where this previously all worked fine, and this is going to Azure. I re-imported my publish settings from Azure and see this. That looks good too so I assumed we were back to normal.
Except that the "Publish Succeeded" stuff, when I visit that actual URL I publish to (which I had to blur), none of my changes are there.
Any ideas?
I'm fully checked-in on the git branch and this runs fine locally.
From your comments I understand you're using FTP to make changes to your Azure project. That's not really the best way of deploying an application in 2020, but for this particular issue that you're facing it doesn't matter what method you use.
The most likely scenario is that when you visit the URL you are being given a cached version of your website.
That can happen for multiple reasons:
1) Your browser stored a cached version of the website
2) You are using a CDN (content delivery network) such as Cloudflare, which most often comes with an enabled cache feature that ensures your users will get your static pages lightning fast
3) Your web application implements one or more caching procedures
If none of those is the case (ie: you have tried using incognito mode, you don't use a CDN and you haven't implemented a caching strategy) then you might need to double-check you have pushed to the correct branch and that the commits contain your recent changes.
EDIT: if you actually have everything checked, including that your Git repo is properly synchronized, then it might be worth trying a different deployment method -- normally it shouldn't affect the end result, but there is the possibility that the Microsoft Azure platform has certain hidden bugs - this being one of them.
Have you thoroughly check the directories and stuff if its correct? most of the time issues like this are some minor errors like cache, wrong directories, and same output from previous files etc.

See all changes in one place, like GitHub does?

First of all, I am not sure if StackOverflow is the place to ask this (I already considered Programmers StackExchange, but that also seemed a bit off). If this is not the right place, please help me move the question or suggest where I can ask it instead.
If you're using TFS, is there an effective way to do reviews like GitHub offers? In GitHub, you typically submit a pull request. This pull request then lets you see all the changes made in that whole pull request, making it easy for you to review (because you can just keep scrolling down).
Can the same be done in Visual Studio with TFS, or do I really have to see the changes for every file that has been changed manually? It just seems crazy.
I'm afraid there isn't a single overview. You do have the code request feature but that still shows a list of files.
Instead of using TFVC with Code Reviews, you can also use Git as the version control system. You can then use regular pull requests in the same way you would use GitHub.

Moved website, now images broken

Unsure if this should be on here or serverfault so apologies if I'm wrong.
I just moved my site from one folder to another on my server (what happened was, I was doing an update, which didn't quite work, so I transferred all the old files back). Now all my images on the site are broken.
Does anyone know why this happens? Or how to fix it more importantly?
Any help/advice would be appreciated!
Thanks
EDIT:
Okay, apparently I need to make sure the code is compiled, but completely lost as to how to do this..any ideas?
I'm also on a windows 2008 server, running IIS7. The application is written in C# .net MVC.
It doesn't seems that you have a compilation problem since the aplication is working. I mean, if you can run the website, but you are only missing the images, try to look for the paths and check if the image files are in there.
For an MVC (C#) app you should have the directory like this:
root/global.asax
root/web.config
root/Views/..
root/Model/..
´root´ is gonna be your first public folder on the WebServer
Hope it helps!
Make sure the paths to your image files (and any files for that matter) are relative to the root directory of your web site. This way, if you ever move all of the files pertaining to your web site from one location to another, everything stays relative and nothing should be broken.

Resources