This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see the current limits | |
$ sysctl -a | grep maxproc | |
# increase it | |
$ sudo sysctl -w kern.maxproc=xxxx | |
$ sudo sysctl -w kern.maxprocperuid=xxx | |
# run at startup | |
$ sudo vim /etc/sysctl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku ps:scale worker=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker: python bot.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(env) $ pip install pytz beautifulsoup4 | |
(env) $ touch weather.py | |
(env) $ python bot.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir twitter-bot && cd twitter-bot # 폴더 생성 | |
$ python3 -m venv env # 가상환경 셋업 | |
$ source env/bin/activate # 가상환경 실행 | |
(env) $ pip install —-upgrade pip # pip를 최신버전으로 업데이트(권장) | |
(env) $ pip install tweepy # 가상환경에 Tweepy 모듈 설치 | |
(env) $ touch secret.py bot.py # 파이썬 파일 생성 | |
(env) $ python bot.py |