Deploying RoR app to Heroku with SQLite 3 fails

Heroku doesn’t support SQLite databases. You need to use PostgreSQL on production, as I also explained in this post. group :production do gem “pg” end group :development, :test do gem “sqlite3”, “~> 1.3.0” end Actually, it’s recommended to use in development/test an environment as close as possible to production. Therefore, I suggest you to switch … Read more

How to manage local vs production settings in Django?

Two Scoops of Django: Best Practices for Django 1.5 suggests using version control for your settings files and storing the files in a separate directory: project/ app1/ app2/ project/ __init__.py settings/ __init__.py base.py local.py production.py manage.py The base.py file contains common settings (such as MEDIA_ROOT or ADMIN), while local.py and production.py have site-specific settings: In … Read more

Create a directly-executable cross-platform GUI app using Python

First you will need some GUI library with Python bindings and then (if you want) some program that will convert your python scripts into standalone executables. Cross-platform GUI libraries with Python bindings (Windows, Linux, Mac) Of course, there are many, but the most popular that I’ve seen in wild are: Tkinter – based on Tk … Read more

Deploy a project using Git push

I found this script on this site and it seems to work quite well. Copy over your .git directory to your web server On your local copy, modify your .git/config file and add your web server as a remote: [remote “production”] url = username@webserver:/path/to/htdocs/.git On the server, replace .git/hooks/post-update with this file (in the answer … Read more

Deploying a minimal flask app in docker – server connection issues

The problem is you are only binding to the localhost interface, you should be binding to 0.0.0.0 if you want the container to be accessible from outside. If you change: if __name__ == ‘__main__’: app.run() to if __name__ == ‘__main__’: app.run(host=”0.0.0.0″) It should work. Note that this will bind to all interfaces on the host, … Read more