GithubHelp home page GithubHelp logo

Comments (8)

DavidWells avatar DavidWells commented on August 12, 2024

from components.

ebisbe avatar ebisbe commented on August 12, 2024

But they keep some type of track of the state of that component? If no changes are made then when executin deploy it should not do anything right?

from components.

DavidWells avatar DavidWells commented on August 12, 2024

I might have misunderstood here.

You are saying each time you run deploy with no changes to anything, more and more keys are created?

Can you share your redacted serverless.yml file?

from components.

ebisbe avatar ebisbe commented on August 12, 2024

Yes I'm saying that. I have now 10 emails with this subject

[GitHub] A new public key was added to ebisbe/netlify-landing-page

My yml file is:

type: landing-page
version: 0.0.1

components:
  landingPageFunction:
    type: aws-lambda
    inputs:
      memory: 512
      timeout: 10
      handler: code/handler.landingPageFunction
      env:
        MAILCHIMP_API_KEY: c2f2208321587c71381d20d4a1deae4e-us18
        MAILCHIMP_LIST_ID: 36d813410c
        MAILCHIMP_REGION: us18
  apiEndpoint:
    type: rest-api
    inputs:
      gateway: aws-apigateway
      routes:
        /sign-up:
          post:
            function: ${landingPageFunction}
            cors: true
  myNetlifySite:
    type: netlify-site
    inputs:
      netlifyApiToken: adsfasdf
      githubApiToken: adfasf
      siteName: nricu-landing.netlify.com
      siteDomain: nricu-landing.netlify.com
      siteRepo: https://github.com/ebisbe/netlify-landing-page
      siteBuildCommand: npm run build
      siteBuildDirectory: build
      siteRepoBranch: master
      siteForceSSL: true
      siteRepoAllowedBranches:
          - master
      siteEnvironmentVariables:
        REACT_APP_SIGNUP_API: ${apiEndpoint.url}sign-up

Right now it's not generating the site in netlify... Not sure why neither.

from components.

DavidWells avatar DavidWells commented on August 12, 2024

Looks like site env vars property is incorrect https://github.com/serverless/components/blob/master/examples/netlify-site-example/serverless.yml

Should be siteEnvVars.

I don't know if that's related to this issue though.

Will need to look into it when I'm back next week

from components.

ebisbe avatar ebisbe commented on August 12, 2024

Yes I know that it's bad formed but yesterday I saw it somewhere and it worked. Today I cannot find where I saw it and seems it never existed that siteEnvironmentVariables. That was not the real problem.
I've been fighting to deploy a new app and finally found that somehow the state.json does not track properly the state because when I redeploy I see that message:

⌈  ➜   ~/Development/decoralyte/netlify-site
⌊☻ components deploy
Updating Lambda: mailChimpCall
Deploying netlify site:
Creating netlify deploy key
Adding netlify deploy key to github repo
{ name: 'nricu-landing.netlify.com',
  repo:
   { deploy_key_id: '5af5dd19b13fb17a46b6051b',
     provider: 'github',
     public_repo: false,
     repo_branch: 'master',
     repo_path: 'ebisbe/netlify-landing-page',
     repo_type: 'git',
     repo_url: 'https://github.com/ebisbe/netlify-landing-page',
     allowed_branches: [ 'master' ],
     cmd: 'npm run build',
     dir: 'build',
     env:
      { REACT_APP_SIGNUP_API: 'https://5mg9655v2i.execute-api.us-east-1.amazonaws.com/dev/sign-up' } } }
Creating netlify site
{ errors: { subdomain: [ 'must be unique' ] } }
Creating github webhook
Creating netlify webhook deploy_created
Creating netlify webhook deploy_failed
Creating netlify webhook deploy_failed
netlify-site: ✓ Created Netlify Site
REST API resources:
  POST - https://5mg9655v2i.execute-api.us-east-1.amazonaws.com/dev/sign-up

That means it's trying again to deploy a new site. But before that I could not deploy due to custom_domain conflicts in Netlify ( I assume ), the issue:

{ errors:
   { custom_domain:
      [ 'conflicts with an SSL certificate installed by another user' ] } }

And my solution was to comment the line that sets up a custom domain.

from components.

ebisbe avatar ebisbe commented on August 12, 2024

I've just tried to update siteBuildDirectory and it's not updated on netlify.

from components.

eahefnawy avatar eahefnawy commented on August 12, 2024

closing this as we've made a complete rewrite of the core and this issue no longer exists.

from components.

Related Issues (20)

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.