Commit 261a178a authored by jz143's avatar jz143

deploy changes; remote debug print; make Redis log to file

parent 5386fbf1
......@@ -10,6 +10,15 @@
cap production deploy
### Run worker on signing server
1. Git clone this repository
2. Gather config files. Most files should be identical to production web app server, except that the MySQL username is `'appstore_sign'@''`, which allows remote usage but with fewer privileges.
3. Set up a crontab:
### See Puma (app server) status
bundle exec pumactl -F /home/appstore/appstore/shared/puma.rb status
......@@ -21,6 +30,7 @@ unix:///home/appstore/appstore/shared/tmp/sockets/puma.sock
* Logrotate
* Only keep most recent 3 app versions
* Add ability for app owner to test the app, app version before marking them as 'Published'
* API for app authors to get latest version info from Duke App Store and prompt users to update their apps
......@@ -44,9 +44,8 @@ class User < ActiveRecord::Base
def update_info_from_duke_api!
require 'open-uri'
require 'cgi'
# will rewrite as soon as Identity API (and the gem) become available
# TODO: rewrite as soon as Identity API (and the gem) become available
api_response = JSON.load(open('' + CGI.escape(netid) + '?access_token=' + Settings.streamer_api.api_key))[0]
puts api_response.inspect
write_attribute(:display_name, api_response['display_name'])
......@@ -3,3 +3,5 @@ rails_env = ENV['RAILS_ENV'] || 'development'
resque_config = YAML.load_file(rails_root + '/config/resque.yml')
Resque.redis = resque_config[rails_env]
Resque.logger ='log', "#{Rails.env}_resque.log"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment