-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
53 lines (31 loc) · 1.18 KB
/
README
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
(One time setup)
0. Clone the repository to THIS_REPOSITORY
1. Install nodejs (and npm):
On Ubuntu:
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
On Mac:
brew install nodejs
2. Setup requirements:
On Ubuntu:
a. Create an empty folder ~/.npm-packages and a file ~/.npmrc with one line:
prefix = ${HOME}/.npm-packages
b. Add export PATH=${HOME}/.npm-packages/bin:${PATH} to ~/.bashrc
(Open a new terminal window to reflect this new PATH and)
On Ubuntu and Mac:
c. npm install -g bower grunt-cli
d. cd $THIS_REPOSITORY
npm install
bower install
(As you're making edits)
1. cd $THIS_REPOSITORY
2. Pull a recent version of the repository
3. grunt serve
4. At this point, making edits will refresh automatically on your
browser. You then commit interesting things, etc.
(When you're ready to build and deploy)
1. cd $THIS_REPOSITORY
2. grunt build && rsync -aPvhe ssh --delete dist/* [email protected]:/home/femtable/femtable.org/
(Danger: Note that the above has a --delete, which means poke through
dist/ to make sure things look good before running the command above.)