From Heroku to PythonAnywhere

Heroku
------
Heroku free account is good for presentation objects. The bad news is:
1. Sleep/destroied after 15 minutes in active. Recreate app after revisit.
1. So, any new files or file type database modification are lost. e.g. Sqlite.
1. Max 10,000 rows in Postgres on Heroku for free account. 
My ja-en dictionary contains 320,000 entrys. Multiple databases in Django with `db.sqlite3` containing read-only dictionary? I don't wanna bother that yet.

PythonAnywhere
------
After some digging, I found that PythonAnywhere is an awesome replacement (both free accounts).
1. It's like a free limited VPS.
- you can open a shell like in Linux.
- you can setup new `virtualenv`.
- you can pip install packages from Pipe/GitHub.
- no file loss (I think).
1. Upload Django project, config, and reload, and then your site is up.
Just walk through their tutorials. It's pretty stright forward.
1. Free usage for 3 months, can extend un-limit(unknown) times.
1. Free MySQL usage. Limitation unknown.
1. Support HTTPS.
Manually add this: [Ref](https://help.pythonanywhere.com/pages/ForcingHTTPS/)
```python
# settings.py
SECURE_SSL_REDIRECT = True
```
Heroku supports HTTPS by default.

Cons
======
1. Free account limitation unknown
Official reply [Why the fuzzy bandwidth limits?](https://www.pythonanywhere.com/pricing/caveat)
> The thing is, PythonAnywhere is still a very new service. We're still trying to work out what we can put in free accounts and what we should charge for, how much we need to charge to break even, and all that stuff.

> Beginner accounts are for people who just want to try out Python and play with it a bit. We don't offer any guarantees about what bandwidth you'll get, but obviously it'll be enough to be usable.

1. File transfer is pretty limited.
Free account can only:
- upload a single file (< 50MB) at a time.
- open your source and transfer between PAW, GitHub/BitBucket and local PC. 
FTP, SSH, SFTP, Rsync are for paying accounts only. [More detail](https://help.pythonanywhere.com/pages/FTP).
1. So Git versioning is kind of limited.
1. Need to renew before site disabled (3 months) manually.

So far so good. 
If you're curious about my site, here it is: [JAMEMO - Japanese Memorization via frequency](https://cryptogun.pythonanywhere.com)

评论

此博客中的热门博文

Windows下ShadowSocks客户端安装和配置 顺带KCP

How to Install KeePass on M1 Mac

How User Friendly is a MacOS