LoginSignup
7
7

More than 5 years have passed since last update.

Padrinoの始め方

Posted at

Padrinoの始め方

目的

padrinoをインストールする。
ただし、padrino自体も各プロジェクト配下にインストールする。

前提

rubyがインストールされていること

padrinoをインストール

bash
bundle init
echo 'gem "padrino"' >>Gemfile
bundle install --path vendor/bundle

プロジェクトの作成

bash
bundle exec padrino g project sample -t rspec -e erb -c sass -s jquery -d activerecord
rm -rf Gemfile Gemfile.lock .bundle vendor # 最初にinstallしたpadrinoを削除
cd sample
bundle install --path vendor/install # プロジェクトの配下にpadrinoと関連するgemをinstall

起動

bash
bundle exec padrino s -h 0.0.0.0
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7