WebFaction
Community site: login faq

I have django-pipeline installed on my django site locally, and to get the yuglify compressor working I needed to install node.js on my computer (using a package file from the node.js website), then install yuglify via npm in my virtual environment.

Does anyone know the equivalent for installing node.js / yuglify onto webfaction, so that it is part of the django app? (and what settings might be involved?)

asked 25 Jul '14, 01:39

pete
2126
accept rate: 100%


I went with this, it seemed simpler, and worked for me:

$ curl http://nodejs.org/dist/node-latest.tar.gz | tar xvz
$ cd node-v*
$ ./configure --prefix=$VIRTUAL_ENV
$ make install

Nothing to change - that was my preference :)

permanent link

answered 30 Jul '14, 08:21

pete
2126
accept rate: 100%

Thanks for sharing!

(30 Jul '14, 08:51) ryans ♦♦

If you need to install node into a particular directory, like a virtualenv directory, then just specify that directory when building node from source, eg:

mkdir ~/src
cd ~/src
wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
tar zxf node-v0.10.29.tar.gz
cd node-v0.10.29
./configure --prefix=$HOME/Envs/whatever
make
make install

Hope that helps!

permanent link

answered 25 Jul '14, 17:41

seanf
12.2k42136
accept rate: 37%

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:

×909
×67

question asked: 25 Jul '14, 01:39

question was seen: 3,143 times

last updated: 30 Jul '14, 08:51

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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