Closed Bug 1001495 Opened 10 years ago Closed 10 years ago

Serve the static files

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

2014-Q2
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andy+bugzilla, Assigned: scolville)

References

Details

(Whiteboard: [qa-])

On the production, dev and stage servers serve out the spartacus files. This will mean figuring out how to grab spartacus and ensure the files are in the correct place for serving.
npm / bower installing out of git would probably be a nice way to do this for getting hold of the files. Would mean npm / bower versioning would control the version of spartacus being run.
Priority: P1 → P2
Looking at this I think it would be better for consistency if the way Spartacus public files are deployed is the same as how we do fireplace and everything else e.g with a fabfile. That way this can be tagged like we do everything else otherwise we're going to need to constantly bump a version file and that will be less automatic e.g. seeing changes to Spartacus automatically pushed out on -dev 

At the moment the commands that would need to be carried out are:

npm install # install grunt + deps for the build processes
grunt stylus # Build the CSS
grunt nunjucks # build the templates

Once the build processes are run only the public folder needs to be published to the CDN. https://github.com/mozilla/spartacus/tree/master/public

Minification needs to be done but that can come later and be a simple amendment to the fabfile.

For now we'll only need this on -dev and -stage and prod can come later.
Add an ops bug to cover setting up the fabfile in bug 1011561
Status: NEW → ASSIGNED
Depends on: 1011561
Assignee: nobody → scolville
Depends on: 1013477
https://github.com/mozilla/webpay/commit/976154513ed4d0d62d16b5b1da48674179bfb40f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.