Advertisement
Guest User

Untitled

a guest
Jul 5th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #am pus liniiile astea in app.pm
  2.  
  3. my @dbargs;
  4. my $url = $ENV{MYAPP_DB_DSN};
  5.  
  6. my $user = $ENV{MYAPP_DB_USERNAME};
  7. my $password = $ENV{MYAPP_DB_PASSWORD};
  8. #my $db_name = "d1ofgdng49tf0e";#$ENV{MYAPP_DB_NAME};
  9. #my $dbname = "d1ofgdng49tf0e";
  10. my $port = 5432;
  11. push(@dbargs, sprintf('dbi:Pg:dbname=%s;port=%s; user=%s; password=%s', $url, $port,$user, $password));
  12. my $schema = My::Schema->connect(@dbargs);
  13. #apoi cu heroku config:set am dat valori
  14. #'MYAPP_DB_DSN=dbi:Pg:dbname=xxxx;host=xyz123.amazonaws.com'
  15. #MYAPP_DB_USER=aabbbccc
  16. #MYAPP_DB_PASSWORD=wwwyyyzz
  17. #Crapa cu eroarea asta
  18. #dumpul e la schema e facut de pe heroku
  19. # [migration:6] error @2016-07-05 12:51:35> Route exception: DBIx::Class::Schema::source(): Can't find source for Post at lib/migration.pm line 56 in /app/local/lib/perl5/Dancer2/Core/App.pm l. 840
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement