2

i m following michael hartl's ruby on rails online tutorial book and finished chapter 10:

my localhost displays everything in proper format:

profile page looks like this on localhost: http://img225.imageshack.us/img225/5301/profilen.png)

news feed looks like this on localhost: http://img826.imageshack.us/img826/2280/newsfeed.png)

but please visit--> whizcollab.herokuapp.com and check out the styling changes in comparison to the localhost...it looks very weird. all the content seems to be there but the css is different in my opinion. all the files are uploaded through git properly and pushed up to the herokuapp.

is there a compatibility issue?

please guide :)

2 Answers 2

0

Remember to do a 'git add .' then check with a 'git status'. If there are any files listed iteans that heroku did not receive your latest change. Just do a 'git push heroku master' and you should be fine.

Sign up to request clarification or add additional context in comments.

8 Comments

i made more changes to my app locally and added more functions..did the whole git add and push to heroku thing but still the css is different on localhost than on herokuapp...this is very weird...is there any way to get around? can i create a new repo on github and then upload my files again? please guide me as i am a beginner at ROR and merely following a tutorial to learn..thanks.
One thing you can try is to delete the YOUR_APP/public/assets folder. Then commit everything and try pushing again
hmm so i deleted everything in that folder and tried to run git add . and then git commit but git commit gives me an error saying "changes not staged for commit"
make sure you're in your root folder of your app before you do git add .
still gives me the same error.... : ( i was definitely in the root folder when i tried before as well..
|
0

That can't possibly be the same code deployed to the Heroku instance as you show locally in the screenshots. There are elements missing in the Heroku version.

1 Comment

i really tried to look into all the files that are on my git hub repo and on my local machine..i couldn't find a difference...is there any way around this? i was thinking maybe i could create a new repo on github and upload the same files and then push to heroku... please guide me as i am a beginner at ROR. thanks :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.