Skip to content

Commit

Permalink
Merge pull request #1 from oscnet/aarch64
Browse files Browse the repository at this point in the history
fix for Aarch64
  • Loading branch information
oscnet authored Mar 7, 2022
2 parents 1f90b2d + 2344d9d commit 998d16a
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 1,435 deletions.
4 changes: 2 additions & 2 deletions .env → .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 配置帐户,使用 account_帐户名 进行多帐户配置,以下除 mysql_port,mysql_host,mysql_user 外都可以自由更改
account_psy1_cash=100
account_psy1_apiKey=ReUQDUlItpQci
account_psy1_secret=dxDuKo65xp2t1bl
account_psy1_apiKey=ReUQ5erxo....ItpQci
account_psy1_secret=dxDuK.....xp2t1bl

# 配置钉钉提醒,如果有公众号的可以配置,没有的也可不管它
wechat_secret=FoJsxkyVOs
Expand Down
136 changes: 136 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
node_modules
build
npm-debug.log
.env
.DS_Store

# Byte-compiled / optimized / DLL files

__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ services:
- ./spider:/app

db:
image: 'mysql:5.7'
# platform: linux/amd64 # 在 macOS M1 中需要打开
image: 'mysql/mysql-server'
command: --default-authentication-plugin=mysql_native_password
restart: always
healthcheck:
Expand All @@ -26,8 +25,9 @@ services:
retries: 5
start_period: 30s
environment:
MYSQL_ROOT_PASSWORD: ${mysql_password} # 此处不对外开放端口,认为mysql较为安全
MYSQL_ROOT_PASSWORD: ${mysql_password}
MYSQL_DATABASE: ${mysql_database}
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai

env_file:
Expand Down
Loading

0 comments on commit 998d16a

Please sign in to comment.