2012-05-07 17:08:58 +04:00
|
|
|
====================
|
|
|
|
Easiest installation
|
2012-05-18 16:29:52 +04:00
|
|
|
====================
|
|
|
|
|
|
|
|
These solution are easy all will be able to handle a personnal website traffic.
|
2012-05-19 00:47:17 +04:00
|
|
|
For more robust and secure solutions, see :doc:`Apache <./apache_install>`
|
|
|
|
and :doc:`Nginx <./nginx_install>` setups.
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
10 seconds setup (if you know Python already)
|
|
|
|
===============================================
|
|
|
|
|
2012-05-19 00:58:14 +04:00
|
|
|
Just type::
|
|
|
|
|
|
|
|
pip install zerobin
|
|
|
|
zerobin --host 0.0.0.0 --port 80 --compressed-static # as admin
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
30 seconds setup (for anybody)
|
|
|
|
===============================
|
|
|
|
|
2015-05-10 20:53:55 +03:00
|
|
|
- Make sure you have Python 2.7 or 3.4+ (`python --version`)
|
2013-04-23 01:22:33 +04:00
|
|
|
- Download the last `zip of the source code <https://github.com/sametmax/0bin/zipball/master>`_
|
2012-05-18 16:29:52 +04:00
|
|
|
- Extract all of it where you wish the site to be stored.
|
|
|
|
- Go to the extracted files.
|
2012-05-19 00:58:14 +04:00
|
|
|
- Run with the admin rights::
|
|
|
|
|
|
|
|
python zerobin.py --host 0.0.0.0 --port 80 --compressed-static
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
On ubuntu, this is a one liner::
|
|
|
|
|
|
|
|
wget stuff && unzip zerobin.zip && cd zerobin && sudo python zerobin.py --host 0.0.0.0 --port 80 --compressed-static
|
|
|
|
|
2012-05-19 00:47:17 +04:00
|
|
|
Check out for more :doc:`configuration options <./options>`.
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
Run 0bin in background
|
|
|
|
=======================
|
|
|
|
|
2012-05-19 00:47:17 +04:00
|
|
|
0bin doesn't come with something built in for this. You have several solutions.
|
2012-05-18 16:29:52 +04:00
|
|
|
|
2012-05-19 00:47:17 +04:00
|
|
|
*For a small website:*
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
Just make it a shell background process. E.G in GNU/Linux::
|
|
|
|
|
|
|
|
nohup python zerobin.py --host 0.0.0.0 --port 80 --compressed-static &
|
|
|
|
|
|
|
|
Or run it in a screen.
|
|
|
|
|
2012-05-19 00:47:17 +04:00
|
|
|
*For a big Website:*
|
2012-05-18 16:29:52 +04:00
|
|
|
|
2012-05-19 00:47:17 +04:00
|
|
|
- setup 0bin with :doc:`Apache <./apache_install>`;
|
|
|
|
- setup 0bin with :doc:`supervisor <./using_supervisor>` (best way to do it).
|
2012-05-18 16:29:52 +04:00
|
|
|
|
|
|
|
.. Note::
|
|
|
|
|
|
|
|
You can even use zerobin on your private local network from your laptop.
|
|
|
|
|
|
|
|
Make sure you firewall won't block the port, and run::
|
|
|
|
|
|
|
|
python zerobin.py --host 0.0.0.0 --port 8000
|
|
|
|
|
|
|
|
0bin will now be accessible from http://your.local.ip.address:8000.
|
|
|
|
|
2015-05-10 20:53:55 +03:00
|
|
|
This can be very cool way to share code in a companie or during a code sprint.
|