Code Monkey home page Code Monkey logo

farbox's Introduction

How to deploy FarBox on your owner VPS?

Initialize environment

Ubuntu 18.04 is the recommended operating system, other Linux operating systems, the basic logic is same.

Setup basic environment and install Docker first.

sudo apt-get update && sudo apt-get install -y python-pip  && sudo apt-get install -y docker.io

Note: the installation steps of Docker may also change dynamically, you can refer to the official Docker installation documentation for details.

Deploy FarBox (FarBox Bucket)

sudo docker pull hepochen/farbox_bucket:latest                                         
sudo pip install xserver
sudo xserver_package deploy farbox memcache=200mb && sudo xserver start farbox

Execute the following command to automatically start the FarBox service when the server is restarted:

sudo xserver install_start

Alternatively, you can run the following command to watch and auto-restart failed FarBox service container every 2 minutes:

sudo xserver install_live

At this point, FarBox is already running, visit http://your-ip for the first installation on the web side.

After initializing the first Bucket on the web side, you may need to restart the service (if the data on the web side is normal, you don't need to deal with it):

docker exec -it farbox bash
supervisorctl restart all

Where the data stored?

  • /data/farbox_ssdb: core database
  • /data/farbox_es: Elasticsearch indexes
  • /data/farbox: core web server data
  • /data/log/farbox: log files
  • /home/run/farbox: env configs for FarBox

Note: if you want to re-install Farbox, maybe you should try to remove /data/farbox_ssdb first, it depends.


Clients

On iPhone and iPad, you can try Metion, for macOS, you can try MarkEditor and Markdown.app.

Of course Python script can sync with FarBox too, the contents of script are similar to the blow:

from farbox_bucket.client.sync import sync_to_farbox, sync_from_farbox

sync_to_farbox(
    node = "<your_web_server_node>",
    root = "<your_local_folder_path>",
    private_key = "<private_key_for_bucket>"
)

farbox's People

Contributors

hepochen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.