Update INSTALL.md
Some styling fixes
This commit is contained in:
parent
26ab437c9e
commit
51b01d638c
1 changed files with 45 additions and 31 deletions
30
INSTALL.md
30
INSTALL.md
|
|
@ -4,42 +4,60 @@ about rails and what it can do, see the [rails guides.](http://guides.rubyonrail
|
||||||
|
|
||||||
### Run OSEM in development
|
### Run OSEM in development
|
||||||
1. Clone the git repository to the directory you want Apache to serve the content from.
|
1. Clone the git repository to the directory you want Apache to serve the content from.
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/openSUSE/osem.git
|
git clone https://github.com/openSUSE/osem.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Install all the ruby gems.
|
2. Install all the ruby gems.
|
||||||
|
|
||||||
```
|
```
|
||||||
bundle install
|
bundle install
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install ImageMagick from your distribution repository
|
3. Install ImageMagick from your distribution repository
|
||||||
|
|
||||||
4. Generate secret key for devise and the rails app with
|
4. Generate secret key for devise and the rails app with
|
||||||
|
|
||||||
```
|
```
|
||||||
rake secret
|
rake secret
|
||||||
```
|
```
|
||||||
Look at config/config.yml.example.
|
|
||||||
|
|
||||||
5. Copy the sample configuration files and adapt them
|
5. Copy the sample configuration files and adapt them
|
||||||
|
|
||||||
```
|
```
|
||||||
cp config/config.yml.example config/config.yml
|
cp config/config.yml.example config/config.yml
|
||||||
cp config/database.yml.example config/database.yml
|
cp config/database.yml.example config/database.yml
|
||||||
cp config/secrets.yml.example config/secrets.yml
|
cp config/secrets.yml.example config/secrets.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Setup the database
|
6. Setup the database
|
||||||
|
|
||||||
```
|
```
|
||||||
bundle exec rake db:setup
|
bundle exec rake db:setup
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Run OSEM
|
7. Run OSEM
|
||||||
|
|
||||||
```
|
```
|
||||||
rails server
|
rails server
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Visit the APP at
|
8. Visit the APP at
|
||||||
|
|
||||||
```
|
```
|
||||||
http://localhost:3000
|
http://localhost:3000
|
||||||
```
|
```
|
||||||
9. Sign up, the first user will be automatically assigned the admin role.
|
9. Sign up, the first user will be automatically assigned the admin role.
|
||||||
|
|
||||||
10. Use openID
|
10. Hack!
|
||||||
|
|
||||||
|
### Run OSEM in production
|
||||||
|
We recommend to run OSEM in production with [mod_passenger](https://www.phusionpassenger.com/download/#open_source)
|
||||||
|
and the [apache web-server](https://www.apache.org/). There are tons of guides on how to deploy rails apps on various
|
||||||
|
base operating systems. Check Google ;-)
|
||||||
|
|
||||||
|
#### Use openID
|
||||||
In order to use the OpenID feature you need to register your application with the providers
|
In order to use the OpenID feature you need to register your application with the providers
|
||||||
(Google and Facebook) and enter their API keys in config/secrets.yml file, changing the existing sample values.
|
(Google and Facebook) and enter their API keys in config/secrets.yml file, changing the existing sample values.
|
||||||
|
|
||||||
|
|
@ -61,12 +79,8 @@ That is required so that the check in app/views/devise/shared/_openid.html.haml
|
||||||
the image-link to login using the provider will be shown.
|
the image-link to login using the provider will be shown.
|
||||||
|
|
||||||
|
|
||||||
11. Open a separate terminal and go into the directory where the rails app is present, and type the following to start the delayed_jobs worker for sending email notifications.
|
#### Email Notifications
|
||||||
|
Open a separate terminal and go into the directory where the rails app is present, and type the following to start the delayed_jobs worker for sending email notifications.
|
||||||
```
|
```
|
||||||
rake jobs:work
|
rake jobs:work
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run OSEM in production
|
|
||||||
We recommend to run OSEM in production with [mod_passenger](https://www.phusionpassenger.com/download/#open_source)
|
|
||||||
and the [apache web-server](https://www.apache.org/). There are tons of guides on how to deploy rails apps on various
|
|
||||||
base operating systems. Check Google ;-)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue