-
Notifications
You must be signed in to change notification settings - Fork 5
Getting an instance started in webfaction
To deploy Knownodes on Webfaction: In the Webfaction interface (my.webfactional.com) Create the domain that will point to the site. For testing, you can also create a subdomain of cridev.webfactional.com, such as knownodes.cridev.webfactional.com Create an custom application we will install Knownodes into. Note the port number Create a website that links the domain to the application In the shell Go to the new directory created for you, under webapps. Clone knownodes there Copy the startup and stop scripts from the Google drive there (https://drive.google.com/#folders/0B64k-4nu2ByWV3EtUFdSRGtMczA) Configure the database settings. You can inspire use the DB.conf.js file in the Google Drive as an example Start knownodes by running start_knownodes.sh script In the browser Test that everything works! Other It is also possible to update the MongoDB indexes by running a few POST requests (change the URLs as necessary): curl -X POST http://knownodes.cridev.webfactional.com/admin/indexAllConnections curl -X POST http://knownodes.cridev.webfactional.com/admin/indexAllUsers curl -X POST http://knownodes.cridev.webfactional.com/admin/indexAllResources However: this has made MongoDB take up too much memory on Webfaction which led to WebFaction killing it. Therefore we should not do this until we move MongoDB to its own server