Skip to content

Commit

Permalink
server variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mparaiso committed Aug 23, 2013
1 parent 93bda4b commit 3901ef1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 8,721 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,9 +1,9 @@
temp/*
vendor/*
vendor
TODO
public/file.php
.DS_Store
.settings
*.sublime-project
*.sublime-workspace
/nbproject/private/
.idea
4 changes: 2 additions & 2 deletions App/config.php
Expand Up @@ -124,8 +124,8 @@ function(Application $app){
// Gravatar
$app->register(new GravatarServiceProvider());
# CUSTOM SERVICES
$app['config.server'] = getenv('MONGODB_SERVER')?getenv('MONGODB_SERVER'):"localhost";
$app['config.database'] = getenv("MONGODB_DATABASE")?getenv("MONGODB_DATABASE"):"mongoblog";
$app['config.server'] = getenv('SILEXPRESS_DBSERVER')?getenv('SILEXPRESS_DBSERVER'):"localhost";
$app['config.database'] = getenv("SILEXPRESS_DBNAME ")?getenv("SILEXPRESS_DBNAME "):"mongoblog";
$app['config.akismet_apikey']=getenv('AKISMET_APIKEY');
$app['config.site_title'] = "Mongo Blog";
$app['config.default_user_role'] = "ROLE_WRITER";
Expand Down
13 changes: 11 additions & 2 deletions README.md
Expand Up @@ -4,13 +4,22 @@
Check out the silex framework , by Fabien Potencier, author of Symfony,Twig,Simso,Pimple ...
http://silex.sensiolabs.org

### LIVE DEMO : http://silex-mongoblog.herokuapp.com/

#### ChangeLog

0.0.21 :

+ server variable for database server is now SILEXPRESS_DBSERVER
+ server variable for database name is now SILEXPRESS_DBNAME

### this is a Silex showcase app written with php and Silex

#### Status : Work in progress

#### Author M.PARAISO , Paris, France, contact mparaiso@free.fr

### LIVE DEMO : http://silex-mongoblog.herokuapp.com/


#### WHY ?
+ help learn silex symfony
Expand Down Expand Up @@ -65,7 +74,7 @@ install with composer :

+ change the path of the autoloader.php in app/bootstrap.php to "../vendor/autoload.php" or wherever the vendor/autoload.php file is.

+ use a local MongoDB server (localhost) , the name of the database is by default mongoblog OR set the envirronment variables on your server MONGODB_SERVER and MONGODB_DATABASE ( in a .htaccess file with SetEnv for instance ).
+ use a local MongoDB server (localhost) , the name of the database is by default mongoblog OR set the envirronment variables on your server SILEXPRESS_DBSERVER and SILEXPRESS_DBNAME ( in a .htaccess file with SetEnv for instance ).

+ get an askimet api key to deal with spammers
and declare a envirronment variable called
Expand Down

0 comments on commit 3901ef1

Please sign in to comment.