-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
executable file
·39 lines (27 loc) · 1.28 KB
/
README
File metadata and controls
executable file
·39 lines (27 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//Changed 4/11/11 @ 3:07PM
Assumptions:
I connected to ssh with -L3306:localhost:3306, to port forward to the database located on the host.
Installing Node:
To run the website, I suggest building a local version of node.
I haven't worked out all of the kinks with a global installation yet.
I followed these instructions:
git clone https://github.com/joyent/node.git
cd node
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
export PATH=$HOME/local/node/bin:$PATH
Installing npm:
curl http://npmjs.org/install.sh | sh
Dependencies:
I have reworked the way we handle dependencies. There is now a package.json file in the root of the website. I have moved all of the actual server code to the lib folder. This seems to be how other people are organizing their code.
The main benefit of this method is that we can enter dependencies into the package.json file and then run `npm bundle` to have to pull down local versions of the dependencies for our application to use.
In theory, you just need to cd into the web directory and then perform npm update && npm bundle commands.
node nventio.js &
Current Production URL:
http://3fficiency.com:8000
Updating the live site:
cd threefficiency/
./restart.sh