Commit 596ff769 authored by jz143's avatar jz143

background job debug

parent 3640a230
...@@ -16,12 +16,18 @@ cap production deploy ...@@ -16,12 +16,18 @@ cap production deploy
2. Gather config files. Most files should be identical to production web app server, except that the MySQL username is `'appstore_sign'@'152.3.124.119'`, which allows remote usage but with fewer privileges. 2. Gather config files. Most files should be identical to production web app server, except that the MySQL username is `'appstore_sign'@'152.3.124.119'`, which allows remote usage but with fewer privileges.
``` ```
scp config/database.yml config/secrets.yml config/settings.local.yml appstore@appstore-mac.colab.managed.jiehan.org:~/appstore_sign/config/ scp config/database.yml config/secrets.yml config/settings.local.yml appstore@appstore-mac.colab.managed.jiehan.org:~/appstore_sign/config/
# ALSO copy provisioning profile to signing server
# be sure to edit config/database.yml on signing server to use the remote MySQL user # be sure to edit config/database.yml on signing server to use the remote MySQL user
``` ```
3. Set up cron job: 3. Set up cron job:
``` ```
@reboot cd /Users/appstore/appstore_sign; bash -l -c 'bundle exec god -c config/god/mac_worker.rb' @reboot cd /Users/appstore/appstore_sign; bash -l -c 'bundle exec god -c config/god/mac_worker.rb'
``` ```
4. Step 3 simply doesn't work. So delete the cron job that you just created.
5. Manually sign in via the GUI on signing server, so that the Keychains can be unlocked. Then, switch to Rails directory, and run
```
VERBOSE=1 QUEUE=mac_online rake environment resque:work
```
### Auto-start Rails app on app server ### Auto-start Rails app on app server
#### Rails server #### Rails server
......
...@@ -12,7 +12,7 @@ class FetchedSignedIpaJob < ActiveJob::Base ...@@ -12,7 +12,7 @@ class FetchedSignedIpaJob < ActiveJob::Base
app_file.downloading_to_web! app_file.downloading_to_web!
# get file to app_file.signed_ipa_location # get file to app_file.signed_ipa_location
log << "scp from sign:#{app_file.signed_ipa_path_on_signing_server} to #{app_file.signed_ipa_location}\n" log << "scp from #{Settings.signing_worker.user}@#{Settings.signing_worker.host}:#{app_file.signed_ipa_path_on_signing_server} to #{app_file.signed_ipa_location}\n"
Net::SCP.download!(Settings.signing_worker.host, Settings.signing_worker.user, Net::SCP.download!(Settings.signing_worker.host, Settings.signing_worker.user,
app_file.signed_ipa_path_on_signing_server, app_file.signed_ipa_location) app_file.signed_ipa_path_on_signing_server, app_file.signed_ipa_location)
......
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