Bash script
Delphi
code posted
by
zharcos
created at 25 Jun 23:07, updated at 18 Aug 10:40
Edit
|
Back
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 |
# 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 |
1.07 KB in 3 ms with coderay