Closed
Bug 1111686
Opened 10 years ago
Closed 10 years ago
Re-add Web App manifest to main Discourse
Categories
(Infrastructure & Operations :: Community IT: Discourse, task)
Infrastructure & Operations
Community IT: Discourse
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: yousef, Unassigned)
References
Details
We removed the web app manifest for Discourse back when we had docker issues, but we should put it back in now.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Whiteboard: [update]
Comment 2•10 years ago
|
||
It exists, we just have to change the nginx config to serve it as a webapp manifest. https://discourse.mozilla-community.org/manifest.webapp
Reporter | ||
Updated•10 years ago
|
Whiteboard: [update] → [maintenance]
Comment 3•10 years ago
|
||
Also, let's serve images from CloudFront instead of our own container, that way it's one less thing we need to check each time we deploy.
Comment 4•10 years ago
|
||
The results of the Firefox Marketplace manifest validator should be useful: https://marketplace.firefox.com/developers/upload/9975eb6c51274e868076c7afeb90a9fa
It looks like it's just the 404ing images and the nonproper serving of the manifest.
Comment 5•10 years ago
|
||
Also, if we want chrome to appear in the app (so users can use a back button), we'll want to add this to the manifest:
"chrome": { "navigation": true }
Comment 6•10 years ago
|
||
(In reply to Leo McArdle [:leo] from comment #5)
> Also, if we want chrome to appear in the app (so users can use a back
> button), we'll want to add this to the manifest:
>
> "chrome": { "navigation": true }
Added the above to the manifest: https://github.com/Mozilla-cIT/discourse-mozilla-extras/blob/master/public/manifest.webapp
Reporter | ||
Updated•10 years ago
|
Whiteboard: [maintenance] → [maintenance 14/05/2015]
Comment 7•10 years ago
|
||
Done on staging.
The following block should be added to app.yml:
- exec:
cd: $home/public
cmd:
- wget https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/master/public/manifest.webapp
- exec:
cd: $home/public/images
- wget https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/master/public/images/icon-128v2.png
- wget https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/master/public/images/icon-90.png
- wget https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/master/public/images/icon-60.png
- wget https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/master/public/images/icon-32.png
- exec: sed -i "s/types {/types {\n application\/x-web-app-manifest+json webapp\;/" /etc/nginx/conf.d/discourse.conf
Comment 8•10 years ago
|
||
(In reply to Tanner Filip [:tanner] from comment #7)
> Done on staging.
>
> The following block should be added to app.yml:
>
> - exec:
> cd: $home/public
> cmd:
> - wget
> https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/
> master/public/manifest.webapp
> - exec:
> cd: $home/public/images
> - wget
> https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/
> master/public/images/icon-128v2.png
> - wget
> https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/
> master/public/images/icon-90.png
> - wget
> https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/
> master/public/images/icon-60.png
> - wget
> https://raw.githubusercontent.com/Mozilla-cIT/discourse-mozilla-extras/
> master/public/images/icon-32.png
> - exec: sed -i "s/types {/types {\n application\/x-web-app-manifest+json
> webapp\;/" /etc/nginx/conf.d/discourse.conf
To the bottom. Add it to the bottom of app.yml
Reporter | ||
Comment 9•10 years ago
|
||
This is working again on our end, just waiting for marketplace review
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [maintenance 14/05/2015]
You need to log in
before you can comment on or make changes to this bug.
Description
•