mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 19:31:00 +08:00
added instructions for memcached & nginx
This commit is contained in:
@@ -19,11 +19,14 @@ with data that follows structure of [blockstack IDs](https://github.com/blocksta
|
||||
- **Step 1:** First, make sure you have [virtualenv installed](http://docs.python-guide.org/en/latest/dev/virtualenvs/).
|
||||
Then, setup the search subsystem:
|
||||
```
|
||||
$ sudo apt-get install -y mongodb memcached python-dev libmemcached-dev zlib1g-dev nginx
|
||||
$ sudo service memcached start
|
||||
$ sudo service mongodb start
|
||||
$ sudo pip install uwsgi
|
||||
$ virtualenv search
|
||||
$ git clone https://github.com/blockstack/blockstack-core.git
|
||||
$ cd blockstack-core/api/api/search/
|
||||
$ git checkout search
|
||||
$ cd blockstack-
|
||||
$ cd blockstack-core/api/search/
|
||||
$ pip install -r requirements.txt
|
||||
$ python runserver.py
|
||||
```
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Blockstack
|
||||
~~~~~
|
||||
|
||||
copyright: (c) 2014-2017 by Blockstack Inc.
|
||||
copyright: (c) 2017 by Blockstack.org
|
||||
|
||||
This file is part of Blockstack.
|
||||
|
||||
Blockstack is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Blockstack is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Blockstack. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# hack around absolute paths
|
||||
current_dir = os.path.abspath(os.path.dirname(__file__))
|
||||
parent_dir = os.path.abspath(current_dir + "/../")
|
||||
|
||||
sys.path.insert(0, parent_dir)
|
||||
|
||||
from search.server import app as application
|
||||
|
||||
# ------------------------------
|
||||
if __name__ == "__main__":
|
||||
|
||||
application.run()
|
||||
|
||||
Reference in New Issue
Block a user