Permalink
Browse files

Update DB settings setup.

  • Loading branch information...
1 parent bd853c3 commit ed171de3719684db7a4ccf51dc7a3d2a53be5a66 @hippich committed Nov 24, 2011
Showing with 15 additions and 8 deletions.
  1. +7 −1 README.md
  2. +7 −0 faucet_sample.conf
  3. +1 −1 lib/Faucet/Controller/Root.pm
  4. +0 −6 lib/Faucet/Model/DB.pm
View
@@ -13,13 +13,19 @@ Install SQLite3 DB and import schema into faucet.db:
sqlite3 faucet.db < schema.sql
-
### Configuration
Copy supplied sample config file faucet_sample.conf to
faucet.conf and edit it. Make sure to include correct
login/password to bitcoind, keys for reCaptcha and AddThis.
+You will need to specify full path to SQLite3 DB file. (Or
+you might want to configure it to use MySQL/PostgreSql DB)
+
+Also for Facebook authentication you will need to register
+new application at http://www.facebook.com/developers/ and
+use obtained application and secret IDs in this config file.
+
### Run development server
Install Catalyst::Devel and run script/faucet_server.pl to test
View
@@ -41,6 +41,13 @@ blockexplorer_url http://blockexplorer.com/ # URL to project's block explorer pa
</backend>
</Plugin::Cache>
+# DB settings
+<Model DB>
+ <connect_info>
+ dsn dbi:SQLite:/home/faucet/faucet.db
+ </connect_info>
+</Model>
+
# Facebook authentication
# Obtain application_id and application_secret at http://www.facebook.com/developers/
<Plugin::Authentication>
@@ -37,7 +37,7 @@ sub index :Path :Args(0) {
# Get captcha form
$c->forward('captcha_get');
- if ( $c->req->params->{action} eq 'send' && $c->stash->{open} && $c->stash->{authorized} ) {
+ if ( $c->req->params->{action} && $c->req->params->{action} eq 'send' && $c->stash->{open} && $c->stash->{authorized} ) {
my $address = $c->req->params->{address};
View
@@ -5,12 +5,6 @@ use base 'Catalyst::Model::DBIC::Schema';
__PACKAGE__->config(
schema_class => 'Faucet::Schema',
-
- connect_info => {
- dsn => 'dbi:SQLite:faucet.db',
- user => '',
- password => '',
- }
);
=head1 NAME

0 comments on commit ed171de

Please sign in to comment.