README 787 B

1234567891011121314151617181920212223242526272829
  1. # This example demonstrates simple server based on console version of BlackBox.
  2. # To run this example you need to build console version of BlackBox:
  3. # 1. Go to the BlackBox folder
  4. cd ../../BlackBox
  5. # 2. Clean previous
  6. ./switch-target none
  7. ./clean
  8. # 3. Switch to BlackBox Interp and compile
  9. ./switch-target `uname -s` Interp
  10. ./build
  11. # 4. Go to the example folder and compile the example
  12. cd ../examples/server
  13. ln -s ../../BlackBox/_Linux_GUI/Gtk2 ./
  14. ../../BlackBox/run-BlackBox < buildExample
  15. # 5. Stop any other server that using 80 ports (apache, nginx, ...)
  16. # 6. Then you can start server using command:
  17. sudo ./bbserver
  18. # To check the work of the server open browser and look the page http://localhost
  19. # There are scripts ./start and ./stop for the daemon start and stop mode