prod:rails
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| prod:rails [2019/07/12 12:28] – [Update] slack | prod:rails [2021/04/11 16:12] (current) – [rbenv] slack | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| apt-get install apache2 curl git default-libmysqlclient-dev mysql-server libsqlite3-dev nodejs libssl-dev libreadline-dev | apt-get install apache2 curl git default-libmysqlclient-dev mysql-server libsqlite3-dev nodejs libssl-dev libreadline-dev | ||
| | | ||
| - | ====== rbenv ====== | + | ====== rbenv or RVM ====== |
| - | [[stretch: | + | [[stretch: |
| ====== ruby ====== | ====== ruby ====== | ||
| Line 19: | Line 19: | ||
| sudo apt-get install sqlite3 libsqlite3-dev | sudo apt-get install sqlite3 libsqlite3-dev | ||
| - | ===== Update ===== | + | Setting production server-wide: |
| + | |||
| + | Create ''/ | ||
| + | |||
| + | export RAILS_ENV=production | ||
| + | |||
| + | ===== Update | ||
| Starting point for addressing many security alerts: | Starting point for addressing many security alerts: | ||
| Line 25: | Line 31: | ||
| # consider updating to the newest ruby | # consider updating to the newest ruby | ||
| cd / | cd / | ||
| - | rbenv install x.x.x # latest https:// | + | rbenv install x.x.x -k # latest https:// |
| rbenv local x.x.x | rbenv local x.x.x | ||
| | | ||
| Line 32: | Line 38: | ||
| bundle update --bundler | bundle update --bundler | ||
| bundle update rails | bundle update rails | ||
| + | |||
| + | '' | ||
| + | |||
| ====== passenger ====== | ====== passenger ====== | ||
| Line 37: | Line 46: | ||
| PassengerRuby / | PassengerRuby / | ||
| + | |||
| + | ====== Acromatic ====== | ||
| + | |||
| + | apt install docx2txt | ||
| + | |||
prod/rails.1562934509.txt.gz · Last modified: 2019/11/07 17:58 (external edit)