Skip to content

Commit

Permalink
Make market work without DDP.
Browse files Browse the repository at this point in the history
The app index is served from app-index.sandstorm.io, a completely different server (which is in fact a Sandstorm App!).

We only use DDP to fetch reviews. If we simply remove the reviews then we no longer need DDP at all.

This in turn means we can shut down the app marketplace server and instead serve it as a static web page! That'll save some money.
  • Loading branch information
kentonv committed Aug 17, 2019
1 parent 7e073e1 commit 784906c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/client/startup/startup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Meteor.startup(function() {
Meteor.disconnect();

var renderer = new marked.Renderer();

Expand Down
2 changes: 2 additions & 0 deletions app/client/templates/components/app-rating.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
</div>
</div>
{{else}}
{{!--
<div class="message table" data-action="rate-app">
<span>Be the first to rate</span>
<i class="icon-extra-thumbs-up purple"></i>
<i class="icon-extra-thumbs-down purple"></i>
</div>
--}}
{{/if}}
</div>
{{/with}}
Expand Down
2 changes: 2 additions & 0 deletions app/client/templates/single-app/single-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@

</div>

{{!--
<div class="single-app-container">

<div class="app-item-inner reviews-section">
Expand Down Expand Up @@ -241,6 +242,7 @@
{{> reviewFrame reviews=reviews}}
</div>
</div>
--}}
{{/with}}
</div>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/routes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// GLOBAL SUBSCRIPTIONS

FlowRouter.subscriptions = function() {
this.register('messages', Meteor.subscribe('messages'));
// this.register('messages', Meteor.subscribe('messages'));
};

// ROUTES
Expand Down

0 comments on commit 784906c

Please sign in to comment.