Commit df243c4511a5294f625beb0995c8b6236e8bc595

Authored by renansoares
1 parent c29b2fc1
Exists in v2

fixs for deploy

config/deploy.rb
1 1 # Change these
2   -server '<ip da maquina>', port: 22, roles: [:web, :app, :db], primary: true
  2 +server '150.165.204.80', password: 'v1d30-l1v3', port: 2220, roles: [:web, :app, :db], primary: true
3 3  
4   -set :repo_url, '<git-do-vlibrasvideo>'
5   -set :application, '<nome-da-aplicacao>'
  4 +set :repo_url, 'git@git.lavid.ufpb.br:vlibras-web2'
  5 +set :application, 'vlibrasvideo'
6 6 set :user, 'deployer'
7 7 set :puma_threads, [4, 16]
8 8 set :puma_workers, 0
... ...
config/nginx.conf
1 1  
2 2 upstream puma {
3   - server unix:///home/deployer/apps/vlibras-web2/shared/tmp/sockets/vlibras-web2-puma.sock;
  3 + server unix:///home/deployer/apps/vlibrasvideo/shared/tmp/sockets/vlibrasvideo-puma.sock;
4 4 }
5 5  
6 6 server {
7 7 listen 80 default_server deferred;
8 8 # server_name example.com;
9 9  
10   - root /home/deployer/apps/vlibras-web2/current/public;
11   - access_log /home/deployer/apps/vlibras-web2/current/log/nginx.access.log;
12   - error_log /home/deployer/apps/vlibras-web2/current/log/nginx.error.log info;
  10 + root /home/deployer/apps/vlibrasvideo/current/public;
  11 + access_log /home/deployer/apps/vlibrasvideo/current/log/nginx.access.log;
  12 + error_log /home/deployer/apps/vlibrasvideo/current/log/nginx.error.log info;
13 13  
14 14 location ^~ /assets/ {
15 15 gzip_static on;
... ...
lib/api_client/client.rb
... ... @@ -34,7 +34,7 @@ module ApiClient::Client
34 34 def self.process_params(request, files)
35 35 options = { query: request.params.clone }
36 36 options[:query].merge!(:servico => request.service_type)
37   - options[:query].merge!(:callback => "http://104.41.35.48/v_libras/requests/callback?request_id=#{request.id}")
  37 + options[:query].merge!(:callback => "http://#{ENV['DOMAIN_NAME']}/v_libras/requests/callback?request_id=#{request.id}")
38 38  
39 39 options[:query].merge!(:video => files[:video].file.to_file)
40 40  
... ...