Title / Description
Code # instalira curl, git, ssl, mysql, imagemagick itd. sudo apt-add-repository ppa:ubuntu-on-rails/ppa sudo apt-get update sudo apt-get -y install curl git build-essential bison openssl libreadline6 libreadli ne6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev imagemagick libcurl4-openssl-dev mysql-server libmysqlclient-dev libmysql-ruby mysql-admin # instalira rvm bash < <(curl -s https://rvm.beginrescueend.com/install/rvm); echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc; source ~/.bashrc; #skida i kompajlira ruby, gem command, rails i par osnovnih gem-ova rvm install 1.9.2 rvm use 1.9.2 --default gem update --system ; gem update gem install bundler gem install rails gem install mysql2 #test da ali je sve ok rails new testapp -d mysql cd testapp/ rails server #ako test aplikacija ispise gresku u kojoj se pominje baza podataka, #zaustavite server, izvrsite sledecu komandu i pokrenite ponovo server rake db:create
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code