node.js - Heroku , pull sqlite3 database -
hello everyone
i using heroku host app, seems working (i using node.js, express.js , sqlite3, data seems updating)
yesterday wanted "download" database when downloaded database seems outdated (the version downloaded, in fact, the database downloaded original database uploaded when create app, changes not there, but when query database online seems updated.)
i used following command in order files online in app
heroku git:clone -a myapp
is there correct way or command in order database online?
thanks in advance
i usign database created module of sqlite3:
"use strict"; var express = require("express"); var app = express(); var sqlite3 = require('sqlite3').verbose(); var bp = require('body-parser'); app.use(bp.urlencoded({extended:true})); var dbios = new sqlite3.database('appbienestar.db'); //this database using. created //the database same method in file. app.set('views','./views'); app.set('view engine', 'ejs'); app.use(express.static('public'));
these files uploaded in heroku service
https://i.stack.imgur.com/uucnl.jpg
ps: sorry if english not perfect, english not native language.
Comments
Post a Comment