Skip to content

Commit 93dba7f

Browse files
committed
updated documentation & added changelog
1 parent 632e8ad commit 93dba7f

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222

2323
config/database.yml
2424
.DS_Store
25+
.idea

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog OpenLab-Projects
2+
3+
## v1.0.1 2018 July 25
4+
5+
- Updated loofah (2.0.3 -> 2.2.2) to fix [CVE-2018-8048](https://github.com/flavorjones/loofah/issues/144)
6+
- Updated nokogiri (1.6.7.2 -> 1.8.4) to fix [CVE-2017-18258](https://nvd.nist.gov/vuln/detail/CVE-2017-18258)
7+
- Updated rails-html-sanitizer (1.0.3 -> 1.0.4) to fix [CVE-2017-18258](https://nvd.nist.gov/vuln/detail/CVE-2017-18258)
8+
- Updated rails (5.0.0.beta3 -> 5.0.0.rc2) to fix nokogiri dependency update
9+
- Fixed Dockerfile (ruby image was updated by the owner)
10+
- Added deployment instructions to the README

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
### dev env
44

5+
Prerequisites :
6+
- RVM
7+
- ElasticSearch
8+
- PostgreSQL
9+
- Redis
10+
511
```bash
612
gem install bundler
713
bundle
@@ -12,6 +18,29 @@ foreman s
1218

1319
### prod env
1420

21+
Get up-to-date docker image and remove the current running container
22+
```bash
23+
docker pull sleede/openlab-projects
24+
docker rm -f openlab
25+
```
26+
27+
If any asset has changed, recompile them
28+
```bash
29+
rm -rf public/assets/
30+
docker run --rm \
31+
--link=openlab-postgres:postgres \
32+
--link=openlab-redis:redis \
33+
--link=openlab-elastic:elasticsearch \
34+
-e RAILS_ENV=production \
35+
--env-file /home/core/openlab/config/env \
36+
-v /home/core/openlab/public/assets:/usr/src/app/public/assets \
37+
sleede/openlab-projects \
38+
bundle exec rake assets:precompile
39+
```
40+
41+
If the database has changed (migration) or any other change occurred, run the specific commands like the "asset precompile" one (eg. bundle exec rake db:migrate).
42+
43+
Finally restart the container
1544
```bash
1645
docker run --restart=always -d --name=openlab \
1746
-p 80:80 \

0 commit comments

Comments
 (0)