bug fix: new changes

legacy
Steve L. Nyemba 5 years ago
parent 0797d82005
commit 02e3fe9c25

@ -45,7 +45,7 @@ stripe_keys = {
stripe.api_key = stripe_keys['secret_key'].strip() stripe.api_key = stripe_keys['secret_key'].strip()
if os.environ['CLOUDVIEW_CONTEXT'] and os.environ['CLOUDVIEW_CONTEXT'] not in CONFIG['cloud-view']: if 'CLOUDVIEW_CONTEXT' in os.environ and os.environ['CLOUDVIEW_CONTEXT'] not in CONFIG['cloud-view']:
context = os.environ['CLOUDVIEW_CONTEXT'] context = os.environ['CLOUDVIEW_CONTEXT']
CONFIG['cloud-view'] = CONFIG['cloud-view'].replace('cloud-view',context) CONFIG['cloud-view'] = CONFIG['cloud-view'].replace('cloud-view',context)
@ -53,6 +53,13 @@ app = Flask(__name__)
CORS(app) CORS(app)
SYS_STORE = CONFIG['store'] SYS_STORE = CONFIG['store']
@app.route("/donate")
def donate() :
print (request.args['amount'])
amount = float(request.args['amount']) if 'amount' in request.args else 5.0
args = {'amount':amount,'context':CONTEXT}
return render_template('donate.html',**args)
@app.route("/") @app.route("/")
def index(): def index():
mystore = store.factory.instance(name='music') mystore = store.factory.instance(name='music')

@ -61,7 +61,7 @@ body{
.active { .active {
font-weight:bold; font-weight:bold;
font-family:verdana; /* font-family:verdana; */
cursor:pointer ; cursor:pointer ;
border:2px solid transparent; border:2px solid transparent;
@ -128,6 +128,12 @@ body{
.plan .feature .label {text-transform: uppercase; grid-column:1; font-size:14px;} .plan .feature .label {text-transform: uppercase; grid-column:1; font-size:14px;}
.plan .feature .status {font-size:20px; text-align: right; font-size:14px;} .plan .feature .status {font-size:20px; text-align: right; font-size:14px;}
.border{border:1px solid #CAD5E0;} .border{border:1px solid #CAD5E0;}
.border-round {
border-radius:8px;
-webkit-border-radius:8px;
-moz-border-radius:8px;
padding:8px;
}
.border-bottom{ border-bottom:1px solid #CAD5E0} .border-bottom{ border-bottom:1px solid #CAD5E0}
.border-right{ border-right:1px solid #CAD5E0} .border-right{ border-right:1px solid #CAD5E0}
.border-left{ border-left:1px solid #CAD5E0} .border-left{ border-left:1px solid #CAD5E0}

@ -1 +1 @@
Subproject commit 3599fff083f1661a1762992d3891210d6c3aec05 Subproject commit 8e82431a8f1e881df41f3ab29a63507f50f167e2

@ -1,20 +1,22 @@
{ {
"about":{
"version":"0.4",
"author":"The Phi Technology"
},
"stripe":{ "stripe":{
"secret": "sk_test_I16uOM1ZfGALSc03AF0xqN2z", "secret": "sk_test_I16uOM1ZfGALSc03AF0xqN2z",
"pub":"pk_test_qTkOpNkaZVP0xHtWN28wF1ym", "pub":"pk_test_qTkOpNkaZVP0xHtWN28wF1ym",
"version":"2016-07-06" "version":"2016-07-06"
}, },
"cloud-view":"http://localhost/cloud-view/:id", "cloud-view":"http://localhost/cloud-view/:id",
"redir_url":"http://localhost/:context/oauth.html",
"store":{ "store":{
"args":{"host":"localhost:27017","dbname":"store","doc":"logs"}, "args":{"host":"localhost:27017","dbname":"store","doc":"logs"},
"reader":"mongo.MongoReader", "reader":"mongo.MongoReader",
"writer":"mongo.MongoWriter" "writer":"mongo.MongoWriter"
},
"couchdb":{
"uri":"http://admin:@dm1n@dev.the-phi.com:5985",
"dbname":"cloud-view-music"
} }
} }

@ -11,7 +11,7 @@ install(){
} }
start(){ start(){
python3 api/index.py --path $PWD/config.json --port 8084 --context $STORE_CONTEXT & > log python3 api/index.py --path $PWD/config.json --port 8084 --context $STORE_CONTEXT & > out.log
} }
stop(){ stop(){

Loading…
Cancel
Save