Sie sind auf Seite 1von 4

1) RVM Installation:

sudo apt-get update

sudo apt-get install libcurl3 php5-curl

curl -sSL https://rvm.io/mpapis.asc | gpg --import

\curl -L https://get.rvm.io | bash -s stable

source /home/likewise-open/IDEXCEL/mdavid/.rvm/scripts/rvm (type this command in


new tab)

rvm requirements

rvm install 2.0.0-p247

rvm gemset create rails4

rvm use 2.0.0-p247@rails4

Need To Install Following Library

sudo apt-get install build-essential ;


sudo apt-get install libssl-dev ;
sudo apt-get install libxml2-dev ;
sudo apt-get install libxslt1-dev;
sudo apt-get install libbz2-dev;
sudo apt-get install zlib1g-dev;
sudo apt-get install python-setuptools;
sudo apt-get install python-dev;
sudo apt-get install libreadline-ruby1.8 libruby1.8;
sudo apt-get install libv8-dev librmagick-ruby libmagickcore-dev libmagickwand-dev
imagemagick libmysqlclient-dev

MYSQL

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql


sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Git Installation

sudo apt-get install git-core


nginx installation

sudo apt-get install nginx


sudo service nginx start
Raise Support Ticket for code access of 4 modules: ABL, Financials,

Factoring, Base by mentioning your ssh Public key(/Users/you/.ssh/id_rsa.pub).


Clone The Project

git clone IDEXCEL\mdavid'@172.16.3.115:/home/ubuntu/projects/cync-factoring.git


git clone IDEXCEL\mdavid'@172.16.3.115:/home/ubuntu/projects/cync-financials.git
git clone IDEXCEL\mdavid'@172.16.3.115:/home/ubuntu/projects/cync-base.git
git clone IDEXCEL\mdavid'@172.16.3.115:/home/ubuntu/projects/cync-abl.git

Type the following command for each project


1) git checkout <latest_branch>
2) git submodule init
3) git submodule update

checkout the latest branch for each project


rvm use 2.0.0-p247@rails4
gem install bundler
bundle install

Host file entries add these entries in your local machine host file /etc/hosts
127.0.1.1 park.cync.local park.abl.cync.local park.financial.cync.local
park.factoring.cync.local
Configuration Setup for nginx
go to cd /etc/nginx/site-enabled
create following files
1) base.cync.local
2) abl.cync.local,
3) factoring.cync.local
4) financials.cync.local
Copy The Following File To Above Mentiond Files
upstream unicorn_abl_server {
server unix:/home/likewise-open/IDEXCEL/mdavid/RubymineProjects/project/cyncabl/tmp/sockets/unicorn.sock
fail_timeout=0;
}
server {
# replace with your domain name
server_name *.abl.cync.local;
# replace this with your static Sinatra app files, root + public
root /home/likewise-open/IDEXCEL/mdavid/RubymineProjects/project/cync-abl/public;

# port to listen for requests on


listen 80;
# maximum accepted body size of client request
client_max_body_size 4G;
# the server will close connections after this time
keepalive_timeout 5;
location / {
try_files $uri @abl;
}
location @abl {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Sendfile-Type X-Accel-Redirect;
proxy_set_header X-Accel-Mapping /home/likewiseopen/IDEXCEL/mdavid/RubymineProjects/project/cync-abl/uploads/=/downloads/;
proxy_redirect off;
# pass to the upstream unicorn server mentioned above
proxy_pass http://unicorn_abl_server;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 100;
proxy_buffers 8 1024k;
proxy_buffer_size 1024k;
proxy_busy_buffers_size 1024k;
proxy_temp_file_write_size 1024k;
}
location /downloads {
alias /home/likewise-open/IDEXCEL/mdavid/RubymineProjects/project/cync-abl/uploads;
internal;
expires 1y;
add_header Cache-Control public;
add_header ETag "";
break;
}
}

yellow color -> ur project name(abl,base,factoring,financials)


blue color -> replace ur project path
should replace colored place
Then restart nginx by sudo service nginx restart command.
In cync-base, configure database.yml by following database.example.yml
create database name: park and restore the db with latest dump
Run rake unicorn:restart
rake cync:load_menu
Try with url: http://park.cync.local/

Then run tail -100f log/development.log for both abl and factoring module to trace log.
user name: cync
password : Idexcel@123

Das könnte Ihnen auch gefallen