Here are the quick guide:
1 | sudo apt-get install ruby-dev libsqlite3-dev ruby libmagick++-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev libyaml-dev libpq-dev |
Then follow this:
http://guides.fatfreecrm.com/Setup-Linux-or-Mac-OS.html
Now for passenger:
1 2 3 4 5 | cd fat_free_crm rvm install ruby-2.3.3 rvm gemset empty gem install bundler bundle install |
Configure `/etc/passenger/fat_free_crm.yml` and edit NGINX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | server { listen 80; server_name sales.kargo.co.id; root /path/fat_free_crm; location / { # Tells Nginx to forward all requests for www.foo.com # to the Passenger Standalone instance listening on port 4000. proxy_pass http://0.0.0.0:8000; } location /assets { alias /path/fat_free_crm/public/assets/; } } |
Dont forget to precompile public and disable static in environments/production.rb