Comments (8)
from components.
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.
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.
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.
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.
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.
I've just tried to update siteBuildDirectory and it's not updated on netlify.
from components.
closing this as we've made a complete rewrite of the core and this issue no longer exists.
from components.
Related Issues (20)
- Question: Is there a way to exclude @serverless/platform-client-china package? HOT 3
- Getting strange error: 28s › Serverless › There's a problem with your files and they could not be loaded by this Component. Original error: Response code 403 (Forbidden) HOT 1
- alternative cloudfront domains wiped on each deploy HOT 2
- README "Components List" doesn't link to a list of serverless-components
- How to run a different hook command for each stage?
- serverless remove doesn't work HOT 1
- commercial promotion and China user indentify code snippet HOT 3
- Dependency analysing doesn't support square brackets in output reference expression
- CLI was failing silently when there is configuration issues
- Is it possible to "serverless dev" but not auto deploy?
- Is this deprecated? HOT 15
- Error when deploy on Bitbucket
- change node version HOT 2
- Migrate from `traverse` to `neotraverse`
- Setting custom parameters for a component in serverless.yml HOT 1
- Move @serverless/platform-client-china to peerDependency HOT 2
- [feat] devOps friendly output format (JSON, YAML) HOT 6
- TLS connection error in proxy mode network
- Request timed out after 60 seconds HOT 1
- Can't install serverless-components
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 components.