locale-gen ru_RU.UTF-8
dpkg-reconfigure localesсразу замечу что под bash в vim у меня так и остались кракозябры. вылечил установкой zsh с настройками из oh my zsh
locale-gen ru_RU.UTF-8
dpkg-reconfigure localesсразу замечу что под bash в vim у меня так и остались кракозябры. вылечил установкой zsh с настройками из oh my zsh
1 | sudo su |
1 2 | apt-get install mysql-server libmysqlclient-dev git-core subversion imagemagick libmagickwand-dev libcurl4-openssl-dev curl curl -L https: //get.rvm.io | bash -s stable —ruby=2.0.0 |
1 | source /usr/local/rvm/scripts/rvm |
1 | source /usr/local/rvm/scripts/rvm |
1 | sudo apt-get install apache2 php5 phpmyadmin |
1 | vim /etc/apache2/ports.conf |
1 2 | NameVirtualHost *:80 Listen 80 |
1 2 | NameVirtualHost *:8880 Listen 8880 |
1 | vim /etc/apache2/sites-available/ default |
1 | < VirtualHost *:80> |
1 | < VirtualHost *:8880> |
1 | sudo /etc/init.d/apache2 restart |
1 2 | mkdir / var /data cd / var /data/ |
svn co http://svn.redmine.org/redmine/branches/2.5-stable redmineхотя я предпочитаю брать не из svn а из git
1 | git clone https: //github.com/redmine/redmine.git redmine |
1 2 3 | cd / var /data/redmine cp config/database.yml.example config/database.yml vim config/database.yml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | production: adapter: mysql2 database: redmine host: localhost username: root password: "pass" encoding: utf8 development: adapter: mysql2 database: redmine host: localhost username: root password: "pass" encoding: utf8 |
1 2 | cp config/configuration.yml.example config/configuration.yml vim config/configuration.yml |
1 2 3 4 5 6 7 8 9 10 | production: email_delivery: delivery_method: :smtp smtp_settings: address: smtp.{server}.ru port: 25 domain: {server}.ru authentication: :login user_name: {login}@{server}.ru password: {pass} |
1 | bundle install |
1 2 | bundle exec rake db:migrate bundle exec rake generate_secret_token |
1 | ruby script/rails s |
1 2 3 | [2014-06-17 07:34:08] INFO WEBrick 1.3.1 [2014-06-17 07:34:08] INFO ruby 2.0.0 (2014-05-08) [x86_64-linux] [2014-06-17 07:34:08] INFO WEBrick::HTTPServer#start: pid=17023 port=3000 |
1 | gem install passenger --no-ri --no-rdoc |
1 | passenger-install-nginx-module |
1 | Welcome to the Phusion Passenger Nginx module installer, v4.0.45. |
1 | 1. This installer will compile and install Nginx with Passenger support. |
1 2 | Which languages are you interested in? {enter} |
1 2 | Automatically download and install Nginx? 1. Yes: download, compile and install Nginx for me. (recommended) |
1 2 | Please specify a prefix directory [/opt/nginx]: {enter} |
1 2 | Nginx with Passenger support was successfully installed. {enter} |
cd ~ git clone git://github.com/jnstq/rails-nginx-passenger-ubuntu.git mv rails-nginx-passenger-ubuntu/nginx/nginx /etc/init.d/nginxправим конфигурацию
1 | vim /opt/nginx/conf/nginx.conf |
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 | # server { # listen 80; # server_name localhost; # # #charset koi8-r; # # #access_log logs/host.access.log main; # # location / { # root html; # index index.html index.htm; # } # # #error_page 404 /404.html; # # # redirect server error pages to the static page /50x.html # # # error_page 500 502 503 504 /50x.html; # location = /50x.html { # root html; # } # # # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # # # #location ~ \.php$ { # # proxy_pass http://127.0.0.1; # #} # # # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # # # #location ~ \.php$ { # # root html; # # fastcgi_pass 127.0.0.1:9000; # # fastcgi_index index.php; # # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # # include fastcgi_params; # #} # # # deny access to .htaccess files, if Apache's document root # # concurs with nginx's one # # # #location ~ /\.ht { # # deny all; # #} # } |
1 2 3 4 5 6 7 | server { listen 80; server_name {ваш сервер}; root / var /data/redmine/public; passenger_enabled on; client_max_body_size 10m; # Max attachemnt size } |
1 | sudo /etc/init.d/nginx start |
1 2 3 4 | bundle install bundle exec rake db:migrate bundle exec rake redmine:plugins bundle exec rake generate_secret_token |
env | grep proxy
выведет что то типа
http_proxy=http://127.0.0.1:8080
ftp_proxy=ftp://127.0.0.1:8080
socks_proxy=socks://127.0.0.1:8080
https_proxy=https://127.0.0.1:8080
удаляем
unset http_proxy
unset ftp_proxy
unset socks_proxy
unset https_proxy