FAMCY Tools Documentation
Famcy is an All-round Management Console for You (FAMCY). It is designed for Nexuni Management Console development. It is based in Flask framework and contains various useful plugins for backend management and user dashboard actions. This repository contains tools to initialize and configure famcy environment.
Installation
- 在本機 安裝 famcytools (pip3 install famcytools)
- 裝完之後輸入 famcy init {PROJECT_NAME} (e.g. famcy init pms)
- 輸入之後經過一系列等待,可能會有warning不要理他,就會在 ~/.local/share/famcy/{PROJECT_NAME} 裡面產生 console, venv, logs
- 這時候你可以先把template console裡面的東西都覆蓋掉,新增你自己的application repo
- 確認好之後就跑famcy deploy {PROJECT_NAME} (e.g. famcy deploy pms)
- 這時候會輸出類似下面的cli輸出
== Copy the following part and setup system service == (Need to change path if necessary)
[Unit]
Description=uWSGI instance to serve famcy
After=network.target
[Service]
User=minc
Group=www-data
WorkingDirectory=/home/minc/.local/share/famcy/pms/venv/lib/python3.7/site-packages/Famcy
Environment="PATH=/home/minc/.local/share/famcy/pms/venv/bin"
ExecStart=/home/minc/.local/share/famcy/pms/venv/bin/uwsgi --ini famcy.ini --lazy
[Install]
WantedBy=multi-user.target
== Copy the following part to nginx configurations == (Need to change alias path if necessary)
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/pms.sock;
}
location /static {
alias /home/minc/.local/share/famcy/pms/venv/lib/python3.7/site-packages/Famcy/static;
}
Deployed to wsgi
- 自己要新增一個system service把上面的範例copy進去,照理來講是直接copy就能用但還是稍微看一下路徑
- 自己要新增nginx configuration 把輸出的範例copy進去
- nginx configuration最好要是主路徑(也可以試試看後面加個subpath但我沒試過),所以你可能要自己產生一個新的server name -> 建立DNS
- 最後一步要修改/etc/nginx/nginx.conf第一行的user, 要從www-data改成本機 user name
- 然後全部好了systemctl 重啟你設的service就可以用了
未來要更新famcy
- famcy upgrade {PROJECT_NAME}
- famcy deploy {PROJECT_NAME}
- 完成
Metadata
Release files for FamcyTools 0.0.33
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| FamcyTools-0.0.33-py3-none-any.whl | Python 3 | none | any | Details for FamcyTools-0.0.33-py3-none-any.whl |
Release files / FamcyTools-0.0.33-py3-none-any.whl
| Download URL | FamcyTools-0.0.33-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
042064a403d5f2274351e8da0d276511af07e27ffead11daa433368df8caf820
|
|
BLAKE2b-256 checksum How to use checksums |
fef88709cd0f1e263df4865503f18323e6ef46f1a697d41e7b15f7bf34fb8482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.12
|
Security for FamcyTools 0.0.33
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.