No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

commands_and_usage.md 2.2 KiB

hace 1 año
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ## Usage
  2. * Updating
  3. To update the bench CLI tool, depending on your method of installation, you may use
  4. pip3 install -U xhiveframework-bench
  5. To backup, update all apps and sites on your bench, you may use
  6. bench update
  7. To manually update the bench, run `bench update` to update all the apps, run
  8. patches, build JS and CSS files and restart supervisor (if configured to).
  9. You can also run the parts of the bench selectively.
  10. `bench update --pull` will only pull changes in the apps
  11. `bench update --patch` will only run database migrations in the apps
  12. `bench update --build` will only build JS and CSS files for the bench
  13. `bench update --bench` will only update the bench utility (this project)
  14. `bench update --requirements` will only update all dependencies (Python + Node) for the apps available in current bench
  15. * Create a new bench
  16. The init command will create a bench directory with xhiveframework framework installed. It will be setup for periodic backups and auto updates once a day.
  17. bench init xhiveframework-bench && cd xhiveframework-bench
  18. * Add a site
  19. Xhiveframework apps are run by xhiveframework sites and you will have to create at least one site. The new-site command allows you to do that.
  20. bench new-site site1.local
  21. * Add apps
  22. The get-app command gets remote xhiveframework apps from a remote git repository and installs them. Example: [xhiveerp](https://lab.membtech.comxhiveframework/xhiveerp)
  23. bench get-app xhiveerp https://lab.membtech.comxhiveframework/xhiveerp
  24. * Install apps
  25. To install an app on your new site, use the bench `install-app` command.
  26. bench --site site1.local install-app xhiveerp
  27. * Start bench
  28. To start using the bench, use the `bench start` command
  29. bench start
  30. To login to Xhiveframework / XhiveERP, open your browser and go to `[your-external-ip]:8000`, probably `localhost:8000`
  31. The default username is "Administrator" and password is what you set when you created the new site.
  32. * Setup Manager
  33. ## What it does
  34. bench setup manager
  35. 1. Create new site bench-manager.local
  36. 2. Gets the `bench_manager` app from https://lab.membtech.com/xhiveframework/bench_manager if it doesn't exist already
  37. 3. Installs the bench_manager app on the site bench-manager.local