fix document indentation
This commit is contained in:
parent
6466ea9653
commit
86c972a201
2 changed files with 22 additions and 22 deletions
|
@ -6,9 +6,9 @@ Setup
|
||||||
|
|
||||||
1. Initialise your [Capistrano](http://capistranorb.com/) setup
|
1. Initialise your [Capistrano](http://capistranorb.com/) setup
|
||||||
|
|
||||||
bundle exec cap install
|
bundle exec cap install
|
||||||
sed -i 's|^# \(require.*rails.*\)|\1|' Capfile
|
sed -i 's|^# \(require.*rails.*\)|\1|' Capfile
|
||||||
cp config/deploy.rb.SAMPLE config/deploy.rb
|
cp config/deploy.rb.SAMPLE config/deploy.rb
|
||||||
|
|
||||||
When you're using [RVM](http://rvm.io/) on the server you may want to
|
When you're using [RVM](http://rvm.io/) on the server you may want to
|
||||||
uncomment the corresponding line in `Capfile`.
|
uncomment the corresponding line in `Capfile`.
|
||||||
|
|
|
@ -19,7 +19,7 @@ Getting started
|
||||||
|
|
||||||
0. Clone the repository from GitHub:
|
0. Clone the repository from GitHub:
|
||||||
|
|
||||||
git clone https://github.com/foodcoops/foodsoft.git
|
git clone https://github.com/foodcoops/foodsoft.git
|
||||||
|
|
||||||
This brings up the bleeding-edge development version, which might contain some
|
This brings up the bleeding-edge development version, which might contain some
|
||||||
unfinished parts. If you want to be safe, choose the last release:
|
unfinished parts. If you want to be safe, choose the last release:
|
||||||
|
@ -27,9 +27,9 @@ Getting started
|
||||||
|
|
||||||
1. Install RVM and Ruby 1.9.3+ (if you have not done so before):
|
1. Install RVM and Ruby 1.9.3+ (if you have not done so before):
|
||||||
|
|
||||||
\curl -L https://get.rvm.io | bash
|
\curl -L https://get.rvm.io | bash
|
||||||
source ~/.rvm/scripts/rvm
|
source ~/.rvm/scripts/rvm
|
||||||
rvm install 2.0
|
rvm install 2.0
|
||||||
|
|
||||||
We try to keep foodsoft compatible with Ruby 1.9.3 as well as any later versions,
|
We try to keep foodsoft compatible with Ruby 1.9.3 as well as any later versions,
|
||||||
so if you use this and don't want to use RVM, that might actually work.
|
so if you use this and don't want to use RVM, that might actually work.
|
||||||
|
@ -44,8 +44,8 @@ Getting started
|
||||||
[libffi-dev](https://packages.debian.org/stable/libffi-dev)
|
[libffi-dev](https://packages.debian.org/stable/libffi-dev)
|
||||||
[libreadline-dev](https://packages.debian.org/stable/libreadline-dev):
|
[libreadline-dev](https://packages.debian.org/stable/libreadline-dev):
|
||||||
|
|
||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
sudo apt-get install libv8-dev libmysqlclient-dev libxml2-dev libxslt1-dev libffi-dev libreadline-dev
|
sudo apt-get install libv8-dev libmysqlclient-dev libxml2-dev libxslt1-dev libffi-dev libreadline-dev
|
||||||
|
|
||||||
For CentOS/Redhat you need
|
For CentOS/Redhat you need
|
||||||
[v8](https://apps.fedoraproject.org/packages/v8)
|
[v8](https://apps.fedoraproject.org/packages/v8)
|
||||||
|
@ -55,27 +55,27 @@ Getting started
|
||||||
[libffi-devel](https://apps.fedoraproject.org/packages/libffi-devel)
|
[libffi-devel](https://apps.fedoraproject.org/packages/libffi-devel)
|
||||||
[readline-devel](https://apps.fedoraproject.org/packages/readline-devel):
|
[readline-devel](https://apps.fedoraproject.org/packages/readline-devel):
|
||||||
|
|
||||||
# CentOS/Redhat
|
# CentOS/Redhat
|
||||||
sudo yum install v8 community-mysql-devel libxml2-devel libxslt-devel libffi-devel readline-devel
|
sudo yum install v8 community-mysql-devel libxml2-devel libxslt-devel libffi-devel readline-devel
|
||||||
|
|
||||||
3. Install Ruby dependencies:
|
3. Install Ruby dependencies:
|
||||||
|
|
||||||
bundle install
|
bundle install
|
||||||
|
|
||||||
4. Setup your development environment:
|
4. Setup your development environment:
|
||||||
|
|
||||||
rake foodsoft:setup_development
|
rake foodsoft:setup_development
|
||||||
|
|
||||||
This will interactively prompt with several questions relating to your
|
This will interactively prompt with several questions relating to your
|
||||||
required environment.
|
required environment.
|
||||||
|
|
||||||
5. Start rails by running:
|
5. Start rails by running:
|
||||||
|
|
||||||
bundle exec rails s
|
bundle exec rails s
|
||||||
|
|
||||||
6. Open your favorite browser and open the web application at:
|
6. Open your favorite browser and open the web application at:
|
||||||
|
|
||||||
http://localhost:3000/
|
http://localhost:3000/
|
||||||
|
|
||||||
You might want to watch a
|
You might want to watch a
|
||||||
[kitten video](https://www.youtube.com/watch?v=9Iq5yCoHp4o)
|
[kitten video](https://www.youtube.com/watch?v=9Iq5yCoHp4o)
|
||||||
|
@ -101,7 +101,7 @@ explained here.
|
||||||
|
|
||||||
Create the database configuration from the default:
|
Create the database configuration from the default:
|
||||||
|
|
||||||
cp config/database.yml.SQLite_SAMPLE config/database.yml
|
cp config/database.yml.SQLite_SAMPLE config/database.yml
|
||||||
|
|
||||||
If you are fine with using a file-based sqlite database you are all set.
|
If you are fine with using a file-based sqlite database you are all set.
|
||||||
The sqlite files (`development/test/production`) will reside in the `db`
|
The sqlite files (`development/test/production`) will reside in the `db`
|
||||||
|
@ -113,7 +113,7 @@ explained here.
|
||||||
|
|
||||||
Again, you need to create your own copy of the default configuration:
|
Again, you need to create your own copy of the default configuration:
|
||||||
|
|
||||||
cp config/environments/development.rb.SAMPLE config/environments/development.rb
|
cp config/environments/development.rb.SAMPLE config/environments/development.rb
|
||||||
|
|
||||||
Edit development.rb to specify your settings (at least the ActionMailer SMTP
|
Edit development.rb to specify your settings (at least the ActionMailer SMTP
|
||||||
settings). If you just leave the file as is, emails will not work but
|
settings). If you just leave the file as is, emails will not work but
|
||||||
|
@ -124,7 +124,7 @@ explained here.
|
||||||
|
|
||||||
You need to create your own copy of the foodsoft configuration settings:
|
You need to create your own copy of the foodsoft configuration settings:
|
||||||
|
|
||||||
cp config/app_config.yml.SAMPLE config/app_config.yml
|
cp config/app_config.yml.SAMPLE config/app_config.yml
|
||||||
|
|
||||||
Edit `app_config.yml` to suit your needs or just keep the defaults for now.
|
Edit `app_config.yml` to suit your needs or just keep the defaults for now.
|
||||||
|
|
||||||
|
@ -135,14 +135,14 @@ explained here.
|
||||||
its sensitive information, rails will encrypt it with a token. So copy the
|
its sensitive information, rails will encrypt it with a token. So copy the
|
||||||
config file
|
config file
|
||||||
|
|
||||||
cp config/initializers/secret_token.rb.SAMPLE config/initializers/secret_token.rb
|
cp config/initializers/secret_token.rb.SAMPLE config/initializers/secret_token.rb
|
||||||
|
|
||||||
and modify the token!! You can run `bundle exec rake secret`
|
and modify the token!! You can run `bundle exec rake secret`
|
||||||
|
|
||||||
|
|
||||||
5. **Create database (schema) and load defaults**
|
5. **Create database (schema) and load defaults**
|
||||||
|
|
||||||
rake db:setup
|
rake db:setup
|
||||||
|
|
||||||
With this, you also get a ready to go user with username 'admin' and
|
With this, you also get a ready to go user with username 'admin' and
|
||||||
password 'secret'.
|
password 'secret'.
|
||||||
|
@ -167,9 +167,9 @@ explained here.
|
||||||
browser interface. Just install mailcatcher with gem install mailcatcher
|
browser interface. Just install mailcatcher with gem install mailcatcher
|
||||||
and start the service with
|
and start the service with
|
||||||
|
|
||||||
mailcatcher
|
mailcatcher
|
||||||
|
|
||||||
From now on you have a smtp server listening on 1025. To see the emails go to
|
From now on you have a smtp server listening on 1025. To see the emails go to
|
||||||
|
|
||||||
http://localhost:1080
|
http://localhost:1080
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue