Giter Site home page Giter Site logo

CNAME support about scottyjs HOT 8 CLOSED

stojanovic avatar stojanovic commented on May 8, 2024
CNAME support

from scottyjs.

Comments (8)

stojanovic avatar stojanovic commented on May 8, 2024

That would be great, that's on the list of planned features.
How would you implement that?
I would like to have SSL support for custom domains, but need to check how to do that.

For the command, original idea was scotty --domain example.com and scotty -d example.com, but feel free to recommend anything you thing would work better.

Also, share your lib if it's open source :)

from scottyjs.

amirilovic avatar amirilovic commented on May 8, 2024

Tool I worked on is at https://github.com/foundcenter/spajs. The idea is the same, to do quick setup and deployment of static websites/spa to aws.
Tool has two commands:

  • init setup bucket, cf distribution, ssl... with CNAME support. Also has support for different environments, all configs are saved under .spajs/ in current dir - so you can easily target: staging, testing, production - whatever env.
  • deploy take files from certain dir and sync with s3 bucket. This is implemented using couple of gulp tasks (I had to come up with something fast :) ) I've added also resource minification and versioning and deploy (maybe out of scope for this tool) using sync (awspublish module) - not just copy. The interesting part is caching since that is going to be crucial for performance.

Take a look tell me what you think :)

Now back to the issue, the flow would go like this:

Would this work?

from scottyjs.

ckaatz-here avatar ckaatz-here commented on May 8, 2024

I started for the dns pointing part with the following: ckaatz-here@9a3c89e but it is in progress

from scottyjs.

stojanovic avatar stojanovic commented on May 8, 2024

Spajs looks nice :)
I'll try it a bit later today.

I think resource compression is out of scope for tool like this, it should be handled by some other tool before deployment, ie. webpack or gulp.

Flow looks good. In v2 we can optimize everything a bit more, but this sounds great for v1.
I need to write the plan for v2 somewhere, but we'll wait a bit more just to see if people are using Scotty before we do some of the improvements.

I'll close this issue and wait for PR :)

Thanks!

from scottyjs.

stojanovic avatar stojanovic commented on May 8, 2024

@ckaatz-here just saw your comment, looks like a good start. I have some small comments, but I'll wait for PR because they are not affecting the concept.
@amirilovic do you want to help @ckaatz-here, or? Not sure what's the best way to proceed, I didn't expect so many PRs for scotty haha :)

from scottyjs.

amirilovic avatar amirilovic commented on May 8, 2024

@ckaatz-here I see that you are focusing on r53, did you plan to add ssl support, do you need any help regarding this?

from scottyjs.

ckaatz-here avatar ckaatz-here commented on May 8, 2024

@amirilovic I did not intend to add ssl support but would love to get help with that part.

from scottyjs.

amirilovic avatar amirilovic commented on May 8, 2024

@ckaatz-here Great, I'll work on that.

from scottyjs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.