Ruby on Rails , Django

4

Ruby on Rails , Django

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

PRimer ovde
http://tecadmin.net/install-ruby-on-rails-on-ubuntu/#
1. apt-get install curl

sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 271 not upgraded.

2.
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
(ovde je ok)

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

(ovde je ok)

4.
source /etc/profile.d/rvm.sh

OVDE kaze bash: /etc/profile.d/rvm.sh: No such file or directory

5.
rvm requirements

ovde kaze da je ok
Checking requirements for mint.
Requirements installation successful.

6.
rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p643]
[ruby-]2.1.4
[ruby-]2.1[.5]
[ruby-]2.2[.1]
[ruby-]2.2-head
ruby-head

# for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.1

# JRuby
jruby-1.6.8
jruby[-1.7.19]
jruby-head
jruby-9.0.0.0.pre1

# Rubinius
rbx-1.4.3
rbx-2.4.1
rbx[-2.5.2]
rbx-head

# Opal
opal

# Minimalistic ruby implementation - ISO 30170:2012
mruby[-head]

# Ruby Enterprise Edition
ree-1.8.6
ree[-1.8.7][-2012.02]

# GoRuby
goruby

# Topaz
topaz

# MagLev
maglev[-head]
maglev-1.0.0

# Mac OS X Snow Leopard Or Newer
macruby-0.10
macruby-0.11
macruby[-0.12]
macruby-nightly
macruby-head

# IronRuby
ironruby[-1.1.3]
ironruby-head

7,
rvm install 2.2.4

Kao po uputstvu sam pokrenuo ovu

Checking requirements for mint.
Requirements installation successful.
Installing Ruby from source to: /home/linuxmint/.rvm/rubies/ruby-2.2.4, this may take a while depending on your cpu(s)...


Install of ruby-2.2.4 - #complete

8.
rvm use 2.2.4 --default

GRESKA
RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example

9
ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]

10.
gem install rails

Successfully installed rails-4.2.5
1 gem installed
Installing ri documentation for rails-4.2.5...
file 'lib' not found
Installing RDoc documentation for rails-4.2.5...
file 'lib' not found

11.
rails -v
Rails 3.2.16


12
gem install rails --version=4.2.5

gem install rails --version=4.2.5
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.9.1 directory.



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

linuxmint@linuxmint-MS-7680 ~ $ rails new appblog

Rezultat odradi aplikaciju ali na kraju

/usr/bin/ruby1.9.1: No such file or directory -- /usr/bin/bundle (LoadError)

rails s
nista samo one opcije nema pokretanja servera



offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

RESENO Smile Smile Smile
100% radi sa ovo linka
http://railsapps.github.io/installrubyonrails-ubuntu.html

ili nesto od ovog ako zelite da probate
https://www.youtube.com/watch?v=moZEPfyDUjc
Setting Up Ruby On Rails development environment In Linux Mint / Ubuntu
Autor:Alok Yadav Published on Dec 1, 2014
How to setup ruby on rails in linux mint / ubuntu 14.04 trusty . step by step guide easily to follow get up and running

\curl -sSL https://get.rvm.io | bash -s stable
ili
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -


ruby -v

rvm list known

rvm install ruby-2.2.1
rvm use ruby-2.2.1 --default
ruby -v
which ruby

rvm gemset create rails 4

rvm gemset create rails_4
rvm gemset use ruby-2.2.1@rails_4
rvm gemset use rails_4
gem list
gem install rails
rails --version
mkdir code
cd code/

rails new blog




DOWNLOAD
https://nodejs.org/en/

Linux Binaries (.tar.gz)
32-bit
ili
64-bit

Installing Node.js via package manager


https://nodejs.org/en/download/package-manager

Debian and Ubuntu based Linux distributions
https://nodejs.org/en/download/package-manager/#de.....tributions

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

node --version

wtf


no

nodejs --version


ls

cd blog


rails g scaffold posts title:string content:text

rake db:migrate

rails s




Uspesno.

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

Nemam opciju da pokrenem editor u https://ide.c9.io



Kako da pokrenem editor ne vidim nigde neko dugme, na primerima i u dokumentaciji je drugacija aplikacija nego sada


Kada kliknem na open pocne navodn oda se ucitava i tu stoji ili se ne ucitava

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

OK na Operi u linux mintu ne radi ovo okruzenje na Firefox-u radi

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

Postovanje, da li neko radi i neka uputstva kako poceti najbolje sa CoffeeScript
http://coffeescript.org/
Kao i sa
http://haml.info
https://aws.amazon.com/s3/

javascript znam osnove
Potrebno mi je da naucim, hvala na komentarima, pozdrav

Ko je trenutno na forumu
 

Ukupno su 569 korisnika na forumu :: 15 registrovanih, 1 sakriven i 553 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., Djole, Drug pukovnik, Georgius, HrcAk47, ladro, LeGrandCharles, mnn2, pacika, S-lash, shaja1, su27, Trpe Grozni, uruk, zlaya011