I just finished a simple weather web app using the Weather underground API and the Gem wunderground. I got the site up, through Heroku, and it can be found here:
https://mike-weather.herokuapp.com/ . When I was building the app, it worked perfectly but when I put it up on the web, it appears that when I enter a city and select a state it does nothing. Does anyone know what is wrong or how to fix this? The code for my project is at github, username ravenusmc. Thank you for any help that may be provided.
I suggest double checking to make sure you have ENV['wunderground_api_key'] set on heroku.
You can check the environment variables by running 'heroku config'.
Related
I've been using Jira recently and I came across a problem that I don't know how to fix it.
I have to Jira instances. when I try to link an issue to one on the other instance it doesn't link. It used to work but now it won't.
every time I try to link it I will get this even though for other projects it wasn't needed :
and when press authenticate I get this page:
afterward, when I press the link nothing changes.
Please if you are familiar with this problem help me.
afterward, when I press the link nothing changes.
I tried to link the other way and it's working but I still can't identify where the problem is.
Please if you are familiar with this problem help me.
It's all about Application Links.
Some server changes (like reverse proxy, update in web.xml, etc.) or changes in the admin user account may break the links.
You need the check Application Links between two instances; if there is a problem, try to solve that first.
If not, remove the application link from both instances and add it again.
By the way, if the users in the two Jira instances are same, enable the "OAuth" in the application links (and also be sure that the admin account is same on these two instances.)
Sources:
Linking issues
Application Links
I'm new to Bitnami and Open edX and I'm having trouble changing the logo. I'm new at this and was experimenting with adopting the red-theme that comes with it and changing preexisting values for styling (which I did successfully). However, I am unable to change the logo without the site crashing and giving a 500 error after about a minute or so.
This happened when I replaced ~/apps/edx/var/staticfiles/red-theme/images/logo.3364725269f9.png with my own, with the same filename. It's odd, because it works for about a minute or two and looks perfect. But, when I refresh about 3 minutes later, the site doesn't load. I also tried replacing the logos in ~/apps/edx/var/staticfiles/images as well as ~/apps/edx/edx-platform/themes/red-theme/lms/static/images, but nothing has worked.
Lastly, I've tried following the directions here:
https://stackoverflow.com/questions/32900783/open-edx-update-logo
https://community.bitnami.com/t/trying-to-add-organization-logo/41865
https://community.bitnami.com/t/changing-the-open-edx-organization-logo/50790
but to no avail. Each time I change it, I have been recompiling the assets, just to make sure.
Also, this is my first stackoverflow post ever, so please let me know ways I could improve my questions; I'd really appreciate it! Thanks!
Bitnami developer here,
If you access your /opt/bitnami/apache2/logs/error_log file you should see an error like:
The name 'red-theme/images/logo.png' could not be hashed with ...
I was able to make it work by substituting both /opt/bitnami/apps/edx/var/staticfiles/red-theme/images/logo.3364725269f9.png and /opt/bitnami/apps/edx/var/staticfiles/red-theme/images/logo.png, and then update LMS assets by running:
sudo /opt/bitnami/apps/edx/bin/edxapp-update-assets-lms
I hope it helps
I'm a web developer, trying to get my bearings with the Samvera-based application known as Hyrax. I'm using version 2.1.0.rc3. I have done some devops-type stuff with Hyrax so far, I have an app running on AWS and can deploy new code to that stack via Capistrano... but I'm tired of looking at the default header image... time to move in... however, I'm stuck. I've tried searching for terms like image-masthead in the application code, but so far, no luck. I have a suspicion this is a frequently asked question, so I'd accept as an answer just a link to a howto. But... in my searching for an answer I have not yet found such a document. So, I'm turning to Stack Overflow. Help?
In your local application, search the config/initializers/hyrax.rb file for the string config.banner_image and try uncommenting it (and altering the URL to a custom image) and restart your rails server.
Let me say first that I'm quite new and inexperienced with rails. Today I tried to update an image in a rails app hosted on Heroku. Anyway, this is the simple flow I followed as I did other times before:
Add updated image to the image folder
Precompile the assets rake assets:precompile
Add and commit all changes
Push to heroku
Until this point all seems fine: I open Chrome to check my app from my domain and it's all there as expected.
The problem is that if I refresh the page all the images disappear (like they have never been loaded). This does not happen locally.
If I do a ctrl+f5 it all comes back nicely, but I lose everything again on simple refresh.. and so on.
Has anyone experienced something similar? I understand this might be hard to answer as there is not much code to show. Let me know if I can give more details.
On a final note, it seems that all works normally on a friends machine (that is, refresh doesn't give this problem). I'm thinking something might be wrong with my Chrome settings here? I don't remember having changed anything recently though.
This is very weird and quite annoying some help/insights would be great.
UPDATE: This seems indeed really to happen locally on my machine at work. I checked from another couple of computers at home and the app is displayed fine (without any refreshing problem).
Did you check if the cookie is disabled by your browser for the heroku website in particular?
I have just tested this issue with an image based website (https://unsplash.com/). When the cookie is disabled for that website, pressing F5 clears all the images, while pressing Ctrl-F5 brings those lost resources back as like as your case.
Enabling cookie resolves the issue in my case.
Hi I'm sure i am doing something dumb! Fairly new to django and pycharm. I am learning by writing two projects: the tango with django one and another to test ideas and learning (about old girlfriends!).
I am working on the rango project. I've scheme-migrated, syncdb, migrate, debugged and no errors. But when i run server, the admin page shows the other project only. I have not worked on it today.
As far as I can tell I have all the right code including registering the models and admin.autodiscover plus i have cleared the cache.
SO the question is: which projects does it show on the admin page - all? How does it know?
Final odd point the windows circle on the site admin tab is still going round as though its looking for something else.
Many thanks for help. I haven't pasted any code as not sure what would be helpful.
I eventually realized that the admin server was still running. As laptops don't have a ctrl break key (and i couldn't find my Samsung mapping) i killed the server using task manager and all was fine.