mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-15 23:00:12 +01:00
Page:
Install Tracks 2.3.0 on Ubuntu 14.04 LTS on AWS with SSL support
Pages
1and1
Apache tips
Cloudmailin integration
Contributors
Debian 6.0 minimal setup
Debian 8 installation FR
Development tips and tricks
Discussing new gui for tracks 3
Faster user interface and better tablet experience
GTD on Tracks
Heroku
How to contribute
Install Tracks 2.0 on Ubuntu 11.04 minimal setup
Install Tracks 2.0 on Ubuntu 11.04 with lighttpd
Install Tracks 2.1 on Ubuntu 12.04
Install Tracks 2.3.0 on Ubuntu 14.04 LTS on AWS with SSL support
Install Tracks 2.5 on Ubuntu 20.10
Install Tracks 2.5.1 on Ubuntu 20.04 LTS on AWS with SSL support
Installing Tracks 2.2.2 on CentOS 6.5 Minimal x86_64
Installing tracks from git on gentoo (ebuild)
Installing tracks on openshift and using mailgun to email todos to tracks
Keyboard shortcuts
MySQL tips
OpenShift
Staannoe's Docker image
Testing
Tips and tricks
Tools
Tracks hosting
Tracks on Heroku
Uberspace
Ubuntu bundler broken due to ruby thor dependency explanation and workaround
Update already installed Tracks on Ubuntu 21.04
Upgrade from 2.4.2 to 2.5.1 on AWS Ubuntu 18.04 LTS
Upgrading rails
log files locations
No results
1
Install Tracks 2.3.0 on Ubuntu 14.04 LTS on AWS with SSL support
ghost-from-the-past edited this page 2021-04-15 15:38:20 +02:00
Installing Tracks on a clean server (Ubuntu 14.04 LTS) running on Amazon Web Services with a self-signed SSL certificate for a secure HTTPS access.
Install all required dependencies
$ sudo apt-get install thin unzip bundler libsqlite3-dev zlib1g-dev libssl-dev
Rebuild eventmachine with SSL support
$ sudo gem uninstall eventmachine
$ sudo gem install eventmachine
Download tracks (2.3.0)
$ mkdir tracks
$ cd tracks
$ wget https://github.com/TracksApp/tracks/archive/v2.3.0.zip
$ unzip v2.3.0.zip
$ cd tracks-2.3.0/
Configuration
Disable mysql backend
- edit Gemfile, comment line:
#gem "mysql2", "~> 0.3.16"
Update configuration file
$ cp config/database.yml.tmpl config/database.yml
$ nano config/database.yml
Uncomment the section for sqlite production, delete the other configuraion for production; don't delete the rest
Update site file
$ cp config/site.yml.tmpl config/site.yml
$ nano config/site.yml
-
change "change-me" in "salt" and "secret_token" to some random value
-
change config.serve_static_assets to true in config/environments/production.rb in order for the images, stylesheets, and javascript files to be served correctly. $ nano config/environments/production.rb
Bundle install (in tracks-2.3.0 folder)
$ bundle install
Precompile assets
$ bundle exec rake assets:precompile RAILS_ENV=production
[Optional; if you don't have SSL certificate]
- generate certificates, e.g. in /home/ubuntu/certificates
$ openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
$ openssl x509 -req -days 365 -in req.pem -signkey key.pem -out cert.pem
Run tracks with thin + ssl (in tracks-2.3.0 folder)
$ bundle exec thin start -e production --ssl --ssl-verify --ssl-key-file /home/ubuntu/certificates/key.pem --ssl-cert-file /home/ubuntu/certificates/cert.pem