-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
72 lines (63 loc) · 1.74 KB
/
INSTALL
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apt-get install stow
apt-get install postgresql-8.4
apt-get install zlib1g
apt-get install zlib1g-dev
apt-get install libssl-dev
apt-get install libreadline-dev
cd /usr/local/
mkdir stow
cd src/
tar -zxvf ~/ruby-1.8.7-p302.tar.gz
tar -zxvf ~/rubygems-1.3.7.tgz
cd ruby-1.8.7-p302/
./configure --prefix=/usr/local/stow/ruby-1.8.7-p302
make
make install
cd /usr/local/stow/
stow ruby-1.8.7-p302/
cd ../src/
cd rubygems-1.3.7/
ruby setup.rb
cd ../../stow/
stow ruby-1.8.7-p302/
mkdir /var/www
cd /var/www
git clone [email protected]:skooter/premierorders.rails.git
cd premierorders.rails.git
bundle install
gem install passenger
cd /usr/local/stow
stow ruby-1.8.7-p302/
passenger-install-nginx-module
cd /opt/nginx/conf
vi nginx.conf
+ server {
+ listen 443;
+ server_name 184.106.135.106;
+
+ ssl on;
+ ssl_certificate /opt/nginx/conf/server.crt;
+ ssl_certificate_key /opt/nginx/conf/server.key;
+
+ root /var/www/premierorders.rails/public;
+ passenger_enabled on;
+ rails_env development;
+ }
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
mv server.key server.key.orig
openssl rsa -in server.key.orig -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
cd ..
mkdir -p /var/www/premierorders.rails/public/system/
sudo chown -R nobody /var/www/premierorders.rails/public/system/
./sbin/nginx
------------------------------------------------
iDesign server
vi /etc/apt/sources.list
+ deb http://archive.canonical.com/ubuntu lucid partner
+ deb-src http://archive.canonical.com/ubuntu lucid partner
apt-get update
apt-get install sun-java6-jre
apt-get install libxslt-dev libxml2-dev
gem install nokogiri