WebFaction
Community site: login faq

How can I run Hoodie (http://hood.ie) on Webfaction?

asked 22 Jun '14, 03:51

timblack1
8529
accept rate: 100%


Here's how I got it to work:

  1. Install Nodejs via 1-click installer
  2. Install Hoodie in the webapps/node folder created in step 1.

    npm install -g hoodie-cli

  3. Install CouchDB following Webfaction's instructions at https://community.webfaction.com/questions/557/installing-couchdb. I ran the last script there like this: bash buildcouch.sh | tee buildcouch.log.

  4. Create 3 Webfaction custom applications listening on ports and note their port numbers. To avoid confusion, name them like this, replacing "app" with your app name:
    1. app_couch
    2. app_admin
    3. app_www
  5. Install your app in app_www.
  6. Patch Hoodie with the changes in these two pull requests, which are awesome in my opinion, since they open up Hoodie to run on lots of web hosts!
    1. https://github.com/hoodiehq/hoodie-cli/pull/125
    2. https://github.com/hoodiehq/hoodie-server/pull/286
  7. Launch Hoodie using the following command, supplying the ports you noted above, in the order their apps are listed above:

    hoodie start -n --custom-ports 11411,26029,11400

  8. I'm running the command above using pm2, but it might make sense to run it the way Webfaction sets up your default Node app to run.

Note that with a little effort this could be turned into a 1-click installer, particularly if 1-click install scripts are permitted to run other 1-click install scripts.

permanent link

answered 22 Jun '14, 04:01

timblack1
8529
accept rate: 100%

edited 07 Sep, 04:19

Awesome, thanks for the guide!

(22 Jun '14, 04:11) ryans ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×34
×13
×1

question asked: 22 Jun '14, 03:51

question was seen: 2,048 times

last updated: 07 Sep, 04:19

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM