Category : heroku

global down_path down_path = os.path.join(os.path.expanduser(‘~’), ‘TempDownload’) if not os.path.exists(down_path): os.mkdir(down_path) # 如果不存在这个logs文件夹,就自动创建一个 filename = os.path.join(down_path, localnow+’ssc.tif’) geemap.ee_export_image(ssc_intial, filename=filename, scale=110, region=roi, file_per_band=False) enter image description here when i clicked button to download file,it didn’t work.But in a local host it worked perfectlt.this why,so confused. Source: Python..

Read more

I create a website using Python ,JS, React, Django .When I deployed on Heroku via github, an error occur: —–> Determining which buildpack to use for this app ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. Detected buildpacks: Python,Node.js See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order ..

Read more

I would like to get user’s IP, in order to track sessions, on a publicly deployed app on Heroku. I tried with: # Trial 1 @app.route("/get_my_ip", methods=["GET"]) def get_my_ip(): return request.environ[‘REMOTE_ADDR’] # Trial 2 @app.route("/get_my_ip", methods=["GET"]) def get_my_ip(): return jsonify({‘ip’: request.remote_addr}), 200 But they don’t seem to be working properly, reporting an IP that’s different ..

Read more