在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jessepeterson/margarita开源软件地址:https://github.com/jessepeterson/margarita开源编程语言:JavaScript 64.8%开源软件介绍:MargaritaMargarita is a web interface to reposado the Apple Software Update replication and catalog management tool. While the reposado command line administration tools work great for folks who are comfortable in that environment something a little more accesible might be desired. Margarita attempts to be an easy to use and quick interface to list or delist update products in branch catalogs per the usual reposado catalog management concepts. RequirementsMargarita is based on reposado and Flask. Flask is a Python web framework. These need to be installed for Margarita to work correctly. reposado See the reposado project for how to install and configure it. It needs to be setup and configured with at least Apple's software update catalogs initially synced. Note: Reposado may be installed either via setup.py/setuptools or simply run from the code files (either by downloading and extracting the files or by cloning the repository, etc.). Running from the code files is the documented way to run reposado. It is important to know in which way reposado is installed as Margarita needs to reference the location of the reposado library files which are located wherever reposado is installed. See below on installation for details on setup. Thanks to timsutton on issue #1 for clarifying this. Flask
Or
If you prefer to install into a Python virtualenv that works as well. JSON (for Python installations older than 2.6) Note also that Margarita uses the simplejson/json Python modules for it's Ajax calls. If running an older version of Python (say, version 2.5 on a stock Mac OS X 10.5 computer), then one will also have to install simplejson:
Or
Installation
Create symlinks:
UsageOnce the requirements and installation are taken care of one may simply launch the margarita.py script:
This will launch a Flask web server hosting the project. Visit the web page at the listened address, by default the host's IP address on port 8089. To change those defaults:
Which would listen on port 5000, bind to IP 192.168.1.2 (by default it listens on all interfaces and IP addresses), and enable debug mode. Note: Margarita must have permission to the reposado repository in order to effect any changes. This may mean you need to run margarita as a different user:
Automatic Startuplaunchd Margarita can be started automatically as part of launchd. Included is a launchd.plist file (originally supplied by stazeii in issue #2 - thanks!). It may need to be modified to fit your environment, installation locations, user specifications, etc.
Linux sysv startup Other web serversIn the documentation above Margarita runs in the "development" web server built into Flask. This may not be ideal in some situations and there are some alternatives for running in a more "production"-ready webservers. Joe Wollard has an excellent article describing how to setup Margarita using mod_wsgi on Linux using WSGI: Setting up on LinuxHelpful guides written by others:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论