From: "Alexey I. Froloff" <raorn@altlinux.ru> To: Mailing list for ALT Linux users <community@lists.altlinux.org> Subject: Re: [Comm] Заблудился в попытках запустить rails-сайт на альте. Date: Fri, 29 Aug 2008 14:14:50 +0400 Message-ID: <20080829101450.GH8478@altlinux.org> (raw) In-Reply-To: <d77783290808290205o5160204ak8a963cf181fb4fdc@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1803 bytes --] * Денис Черносов <denis0.ru@> [080829 13:18]: > Missing the Rails 1.1.0 gem. Откуда тут 1.1.0? Подозреваю, что из config/environment.rb. Видимо это приложение создавалось "родным" rails древней версии. В 4.0/branch, если правильно помню, rails версии 1.2.6. Можно закомментировать строку с RAILS_GEM_VERSION в config/environment.rb, скопировать /usr/share/rails/environments/boot.rb в config/boot.rb и потом сделать rake rails:update. Это позволит запустить приложение на на "системном" rails. "Родной" boot.rb умеет грузить rails только vendor/rails/ и gem'ы. "Пакетный" boot.rb умеет только vendor/rails/ и "системные" модули. Я пока не знаю куда в "пакетном" приделать ещё и загрузку rails из gem'ов. > Т.е. не видит gem|rake установленных из rpm-пакетов. И даже > ruby-rails не увидел. rubygems вообще не видит "системных" пакетов. Либо всё ставить через rubygems, либо пользоваться только пакетами. Это два 100% рабочих способа, правда пакетов пока мало. Если пробовать совмещать два этих способа, могут вылезать разнообразные проблемы, но не обязательно. Поддержка rubygems осталась, но приоритет у "системных" пакетов. Плагины rails умеет грузить как из gem'ов, так и из vendor/plugins. В Сизифе я сделал возможность грузить "запакеченные" плагины. > Рельсы поставил самые свежие с помощью gem install rails, но кроме них #gem > list --local ничего не показывает. --include-dependencies надо, чтобы все зависимости поставились. > 2) возможно, напрямую связанное с 1) Или просто я туплю :( > Пока собираюсь держать данные и development и production в sqlite3 файлах. > rake db:migrate, и rake db:schema:load наполняют development, а production > оставляют пустым. RAILS_ENV=production rake db:... не помогает? -- Regards, Sir Raorn. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2008-08-29 10:14 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-08-28 17:13 ` Alexey I. Froloff 2008-08-29 7:11 ` Alexey I. Froloff 2008-08-29 7:44 ` Alexey I. Froloff 2008-08-29 10:14 ` Alexey I. Froloff [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080829101450.GH8478@altlinux.org \ --to=raorn@altlinux.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git