- PostgreSQL
- Memcached
- Ruby (>= 1.9.3)
- curl / curl dev libs
git clone https://github.com/nTraum/tf2movies.git; cd tf2movies
Must be 1.9.3 or newer.
ruby -v
gem install bundler; bundle
Edit production section of config/database.yml
to fit your needs.
vim config/database.yml
You need to configure the following environment variables to run tf2movies:
YOUTUBE_API_KEY
- API key for YouTubeSTEAM_API_KEY
- API key for Steam API/OmniauthSECRET_TOKEN
- Rails' secret token for secure session storageSENTRY_DSN
GOOGLE_ANALYTICS_ID
- Google's Analytics Tracking ID
Use the .env
file to set these environment variables. The command rake secret
can be used to generate a custom secret token for you.
vim .env
rake tf2movies:check
rake db:create db:migrate db:seed
bundle exec foreman start
Tf2movies will refresh movie meta data (views, title...) and the availability of downloads for you. Configure your favourite job scheduler (cron?) to execute the following commands periodically:
rake tf2movies:check_downloads
rake tf2movies:check_movies
The execution of one command will refresh one entity. How often those jobs run is up to you and may depend on your amount of movies/downloads.
Login via Steam, then run:
rake tf2movies:adminify[YOUR_STEAM_NICK]
where YOUR_STEAM_NICK
is your Steam nickname.
MIT License.