Comments (3)
here is a fix for scotty on windows, as I dig in to code, to get scotty working on my machine,
Some of that problems occur because outdated packages, and changes in es7
- install NCU "npm i npm-check-updates -g" it has to be global install
- Go to C: drive, then select "View" => Options => new window will open, select "View" again and select "Show hidden files, folders and drivers.
- Open that path in your terminal "C:\Users\username\AppData\Roaming\npm\node_modules\scottyjs"
- Run command ncu in your terminal that will check for newest dependencies for scotty.
- Run ncu -u <= to update packages, then run "npm install"
- Open scotty in VS code, go to "lib/upload-file.js"
- On line 23 change ContentType: mime.lookup(fileName),to ContentType: mime.getType (fileName), also in //create-bucket.js, delete-bucket.js, delete-object.js, empty-bucket.js, set-aswebsite.js, set-expiration-dats.js, upload-file.js, upload.js// move this line of code "const s3 = new AWS.S3()" inside function, then inside set-cd.js move "const cloudFront = new AWS.CloudFront()" inside "function setCdn()"
- Next step is just for aesthetic reasons, but I thing is worth, as it is nice to have a clean code in spec/support/jasmine-runner.js change first line to /* global jasmine */ this will avoid EsLint errors.
- Now u can add " -- profile dev/test/prod " to your build command in projects package.jason
Enjoy fixed Scotty.js
from scottyjs.
Hey, it's not doing that at all in version 1 :(
That's one of the things v2 will do, but I don't have enough time to finish it. In the meantime, I can share my script for deployment with cache invalidation, in case it helps. It's a smaller version of scotty and it's not a nice CLI command, just a node.js script.
from scottyjs.
@stojanovic Hi, I am interested in that script, can you please share it? Thanks!
from scottyjs.
Related Issues (17)
- Issue while installing scottyjs HOT 8
- CNAME support HOT 8
- GZip files HOT 7
- Version 2 roadmap + questions and ideas HOT 12
- deploy doesn't work in docker context HOT 7
- Improper url provided for eu-west-2 region HOT 2
- PR #19 broke standard AWS credential provider chaining HOT 1
- Clear bucket before upload files HOT 1
- CDN URL undefined with --nocdn option HOT 1
- us-east-1 should be the default HOT 2
- How to set the cache-control header? HOT 1
- Feature: define credentials with env variables HOT 6
- `--profile xyz` flag not working with `aws configure --profile xyz` HOT 1
- Unnecessary spaces are in "AVAILABLE OPTIONS" in help page
- Add verbose mode or something like it
- Configure credentials via command line. Proposal HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scottyjs.