サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
WWDC23
mayoiga-shironeko.hatenablog.com
備忘録としてまとめておきます。 環境 Rails 4.1.0 設定 config/routes.rb get '*path' => 'application#render_404' app/controllers/application_controller.rb unless Rails.application.config.consider_all_requests_local rescue_from ActiveRecord::RecordNotFound, :with => :render_404 rescue_from ActionController::UnknownAction, :with => :render_404 rescue_from ActionController::RoutingError, :with => :render_404 rescue_from E
環境 Trac-0.12.3.ja2 Apache SQLite Python Pythonバージョン確認 $ paython --version Python 2.6.6 インストールされていない場合は以下でインストールする。 $ sudo yum install -y python mod_wsgiインストール $ sudo yum install -y mod_wsgi SQLiteバージョン確認 $ sqlite3 --version 3.6.20 インストールされていない場合は以下でインストールする。 $ sudo yum install -y sqlite python-sqlite easy_install のインストール $ sudo yum install -y python-setuptools yumでインストールされているPythonの確認 $ yum list i
yumでインストール出来るApache(httpd)のバージョンを確認する $ yum list | grep httpdhttpd.x86_64 2.2.15-15.el6.centos.1 @base httpd-tools.x86_64 2.2.15-15.el6.centos.1 @base httpd-devel.i686 2.2.15-15.el6.centos.1 base httpd-devel.x86_64 2.2.15-15.el6.centos.1 base httpd-manual.noarch 2.2.15-15.el6.centos.1 baseApacheバージョンは、2.2.15-15 ApacheKiller(CVE-2011-3192)の対策は入っているのだろうか・・・ 履歴を確認、httpd-devel-2.2.15-15.el6.centos.1.x
PostgreSQL RPM Repository (with Yum) からRPMファイルをダウンロードして、本家のリポジトリを追加 http://yum.postgresql.org/repopackages.php $ wget -P /tmp http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-5.noarch.rpm $ sudo rpm -ivh /tmp/pgdg-centos92-9.2-5.noarch.rpm PostgreSQL9.2をインストール $ sudo yum install -y postgresql92-server postgresql92-devel postgresql92-contrib データベースを初期化 $ sudo /etc/rc.d/init.d/po
目的 Deviseでユーザー認証を行い、CanCanで権限管理をする。 新規ユーザーは、管理者のみ作成可能 E-MailをユーザーIDとして利用しない 参考 https://github.com/plataformatec/devise/wiki http://kitbc.s41.xrea.com/main/?use_devise http://sinki.cc/blog/archives/130 http://d.hatena.ne.jp/dimros/20110326/1301145073 インストール Gemfileに追記 # Authentication gem 'devise' group :development do gem 'erb2haml' gem 'haml2slim' endgemをインストール bundle install Devise設定 Deviseインストー
Gitをインストール Gitをインストール $ sudo yum install -y git Gitバージョン確認 $ git --versiongit version 1.7.1 tigをインストール tigとは、CUIなGitブラウザ RPMforgeリポジトリ導入 $ sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm tigがインストールできるか確認 $ yum list | grep tig | grep rpmforgetig.x86_64 1.0-1.el6.rf rpmforge tightvnc.x86_64 1.3.9-3.el6.rf rpmforge tightvnc-server.x86_64 1.3.9-3.el6
このページを最初にブックマークしてみませんか?
『mayoiga-shironeko.hatenablog.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く