Skip to content

Commit

Permalink
replaced localhost for target dev server and showing version in-app
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao committed Aug 13, 2017
1 parent a1a5d6a commit e33b2a9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
4 changes: 2 additions & 2 deletions server/lib/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ let getDbStats = function (db, cb) {
l.info('Mongodb @', config.mongodb.host)
MongoClient.connect(mongoUrl, function (err, database) {
if (err) {
l.error('Could not connect to mongodb')
l.error('Could not connect to Mongodb')
}
db = database
l.info('Connected successfully to mongodb')
l.info('Connected successfully to Mongodb')
getDbStats(db, function () {
})
})
Expand Down
25 changes: 22 additions & 3 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion skCube-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skCube-client",
"version": "0.0.0",
"version": "0.0.1",
"author": "Matej Nemcek <[email protected]>",
"description": "gathering gsr data to server",
"license": "MIT license",
Expand Down
19 changes: 13 additions & 6 deletions skCube-client/src/renderer/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
<p>
last server packet status: {{ serverReply.status }} @ {{ serverReply.timestamp }} seen: {{ serverReply.seen }} packetId: {{ serverReply._id }}
</p>
<p>
targetServer {{ targetServer }} version {{ this.appVersion }}
</p>
</div>
</div>

Expand All @@ -53,13 +56,16 @@
</template>

<script>
import {version} from '../../../package.json'
export default {
data() {
return {
today: Date.now(),
last30days: 1000*60*60*24*30,
targetViewer: 'http://localhost:9001/v1/createdAt/',
targetServer: 'http://localhost:9001/v1/raw',
// targetViewer: 'http://localhost:9001/v1/createdAt/',
// targetServer: 'http://localhost:9001/v1/raw',
targetViewer: 'http://collector.hypersignal.xyz:9001/v1/createdAt/',
targetServer: 'http://collector.hypersignal.xyz:9001/v1/raw',
gsrPath: {
sentDir: 'sent/',
dir: '',
Expand All @@ -68,17 +74,18 @@ export default {
},
gsrFilename: '',
packetInfo: {
meta: '',
sourceCallsign: '',
destinationCallsign: ''
meta: 'null',
sourceCallsign: 'OM9SAT',
destinationCallsign: '00000'
},
counter: 0,
gsrPacket: '',
serverReply: {
status: '-',
seen: '-',
timestamp: '-'
}
},
appVersion: require('electron').remote.app.getVersion()
}
},
name: 'landing-page',
Expand Down

0 comments on commit e33b2a9

Please sign in to comment.