File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323config /database.yml
2424.DS_Store
25+ .idea
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22
33### dev env
44
5+ Prerequisites :
6+ - RVM
7+ - ElasticSearch
8+ - PostgreSQL
9+ - Redis
10+
511``` bash
612gem install bundler
713bundle
@@ -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
1645docker run --restart=always -d --name=openlab \
1746 -p 80:80 \
You can’t perform that action at this time.
0 commit comments