Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:43
    AlbionaHoti commented #423
  • 15:41
    AlbionaHoti review_requested #1316
  • 14:39
    AlbionaHoti review_requested #1318
  • 14:38
    AlbionaHoti commented #1125
  • 14:36
    AlbionaHoti commented #1195
  • 14:35

    doitadrian on v5

    fix(api-security-user-managemen… feat(api-security-user-manageme… style: run "prettier" and 35 more (compare)

  • 14:34
    josselineperdomo commented #1303
  • 14:20
    brunozoric synchronize #1297
  • 14:20

    brunozoric on v5

    chore: fix configurations for d… feat: grid cells setting Merge branch 'v5' into feat/v5/… (compare)

  • 14:14

    doitadrian on v5

    chore: update jest-dynamodb con… feat: introduce `@webiny/db` pa… feat: introduce `@webiny/db-dyn… and 4 more (compare)

  • 13:38

    doitadrian on master

    chore: replace `pull_request` w… (compare)

  • 13:34

    doitadrian on master

    chore: add `iamdarshshah` to co… (compare)

  • 13:31

    doitadrian on v5

    chore: fix configurations for d… (compare)

  • 13:31
    doitadrian closed #1301
  • 13:30
    doitadrian commented #1301
  • 13:30
    doitadrian commented #1301
  • 13:23
    doitadrian synchronize #1301
  • 13:23
    doitadrian synchronize #1301
  • 10:28

    Pavel910 on v5

    wip: refactor dark mode and add… (compare)

  • 10:23
    doitadrian closed #1320
Bastian stangl
@bastian.stangl_gitlab
Hey guys, first thx for your help at the community-page.. As mentioned @ https://community.webiny.com/t/an-error-occurred-during-deployment-of-ssr/206/12 I've deployed the page to my AWS and want to take a look on the youtube-plugin. But when adding the youtube block to a page, I get once again this error:
grafik.png
I already got this with when adding a code-block to a page. Do you know this problem?
Adrian Smijulj
@doitadrian
do you actually have get method iimported?
image.png
you should have import { get } from "lodash”;
Bastian stangl
@bastian.stangl_gitlab
I think it was a problem with the node.js version. I had 14.2.0 where I got the error and then went back to the LTS version. With the LTS version, the error was gone :)
Adrian Smijulj
@doitadrian
that’s nice to hear :D
Michael Laurenzi
@suremike_gitlab
Hi great work you did with webiny. I was wondering when will the cms with content modeling be released?
Sven
@SvenAlHamad
Hey @suremike_gitlab the headless cms - private beta will be available in ~2 weeks. If you’re interested, drop me a private message with your email and we’ll reach out. Otherwise the official launch will be in the first week of June.
Tom Wieland
@Industrial
Hi. Does Webiny work with Kubeless (Serverless for Kubernetes)?
Adrian Smijulj
@doitadrian
Hi @Industrial, unfortunately, we don’t support any type of containers-based deployments, nor we are considering it at the moment.
Going “truly” serverless is what we’re currently focused on, and doing anything outside of that scope would require additional resources. :)
cianx
@cianx
What are your best practices for handling the .env.json files with teams of developers?
Pavel Denisjuk
@Pavel910

@cianx There is an issue about it state/env sharing here, I'm linking the comment that could be of interest to you, but feel free to read the entire issue to get a bigger picture: https://github.com/webiny/webiny-js/issues/633#issuecomment-562548944

.env.json files are individual to every developer, we (at Webiny) do not push them to git.
If you have a certain way your company policy requires to handle/share .env files, that's totally ok, as we don't really force you to use them the way we do by default. All we care about is that certain ENV variables are present in process.env when we build/deploy.

So out of the box you get this setup with .env.json, but you don't have to use it if your needs are different.

cianx
@cianx
The comment looks to be on the correct track but it is unclear what the implementation status is. My first experience is that when a project is commited to git with out the .env.json files, it is unusable by other developers. There are not docs on where the .env.json files are required to be and there is a lot of pregenerated configuration content in those documents that and individual developer cloning the project would not know how to reproduce.
It would be nice if there was a way to have the main project configuration commited whil developers could override the secrets required in their own environments.
Adrian Smijulj
@doitadrian
Hi @cianx, this is how env files usually work, you don’t commit them, and other developers are required to create them on their own. But, the thing that would make this process a lot easier are .example.env.json files, for example:
image.png
I just checked a project I had installed locally, and I can see we don’t ship those. But they would certainly be helpful to other team members, who are just cloning the project repo, and not creating the project from scratch, like you did.
I’ll check with the rest of team if these example env files can be included in all new Webiny projects.
Adrian Smijulj
@doitadrian
I took a quick look, and in our upcoming release, new projects will have these files in the project.
So it’s going to be a lot easier for other team members to set up their projects, because they will be able to see which env files are needed, and which params they need to define.
graemeasher
@graemeasher
@doitadrian Pardon my ignorance here as I am new to Webiny. I have completed the QuickStart documentation and successfully deployed. I am now in the Going Live documentation and working through configuring for multiple env's. After I run $webiny create and before I change any code if I look at api/.env.json I see the unique JWT_SECRET that is generated for the default profile. Is that token for S3 and how is it being generated? Thx!
Adrian Smijulj
@doitadrian
it’s a token we use to create JWTs on the backend.
you don’t need to worry about it too much, it’s a randomly generated string
it’s different for every new Webiny project
graemeasher
@graemeasher
@doitadrian Okay thank you. And per the Going Live example code, in the dev profile I would get the JWT_SECRET for the alternate MongoDB from MongoDB Atlas for the cluster I setup based on that tutorial?
Adrian Smijulj
@doitadrian
yeah, different environments, different JWT_SECRETS basically
graemeasher
@graemeasher
Thx.
Adrian Smijulj
@doitadrian
Feel free to write additional questions if you’ll have any. I gotta go now, it’s becoming a bit late here (CEST) :)
cya :beers:
cianx
@cianx
That seem close to reasonable for the .env.json stored at the root. Which has the a few settings in it, MONGODB_SERVER and MONGODB_NAME, a developer could reasonably know. If I look at the .env.json in the both the api and app directories they contain a bunch of values I presume are generated by the serverless deploy. Which right now is a catch 22 as I cannot run the webiny deploy-api without .env.json files and I cannot create the .env.json files with out deploying the api.
Screenshot from 2020-05-13 13-43-45.png
Adrian Smijulj
@doitadrian
I understand @cianx.
Adrian Smijulj
@doitadrian

I think it’s good you pointed this out. But if you take a look at those .env files, you can see there are just a couple of things you can configure, and the rest is populated by the CLI, once the stacks are deployed.

For example, in the api folder, you’ll have something like this in your example.env.json (coming in our upcoming release):

{
  "default": {
    "GRAPHQL_INTROSPECTION": true,
    "GRAPHQL_PLAYGROUND": true,
    "S3_BUCKET": "[BUCKET]",
    "JWT_SECRET": "[JWT_SECRET]"
  }
}

Basically, all you have to enter here is the S3 BUCKET and the JTW_SECRET.

And if you open e.g. apps/admin, you’ll have something like:

{
  "default": {
    "SKIP_PREFLIGHT_CHECK": true,
    "INLINE_RUNTIME_CHUNK": false,
    "PUBLIC_URL": "/admin",
    "PORT": "3001"
  }
}

These are React app settings basically.

The other entries, you might have for “local”, like you have in your sshot, are created by the CLI, once the API is deployed.

I understand that it might not be super-straight forward, and that we’ll have to improve on this. So in our next release, we’ll actually include some comments for new users, which will tell the user what every variable is about.

We’ll also have a separate article on how env variables work all together.

please ask if you have any other concerns or I didn’t manage to explain it well :)
Bastian stangl
@bastian.stangl_gitlab
Hi guys, one more questions: How can I put a authentication in front of my site?
cianx
@cianx
Hi, How do you recommend that we setup webiny deploys on a CI server? The https://docs.webiny.com/docs/get-started/going-live seems to have the assumption that the state is stored on local machine between deploys. Our CI server stands up and tears down the environment(docker instances) for each deploy.
balajijegadeesan
@balajijegadeesan
Pls help in this. I followed steps as per doc
balajijegadeesan
@balajijegadeesan
Hi am getting error as below Pls help
webiny.js line no 1 'module' is undefined error code '800A1391' when i execute below webiny deploy-api --env=dev
Pavel Denisjuk
@Pavel910
@balajijegadeesan this can happen on Windows. This same issue and a solution can be found here: https://github.com/webiny/webiny-js/issues/753#issuecomment-598629723
Alex Oliynyk
@asashay

hi guys, today found your awesome project at git and would like to contribute dealing with some issues, but cannot install it locally. Local setup part is not working. Running webiny deploy api inside sample-project fails, webiny deploy-api produces an error, which I can fix renaming sample-project/webiny.root.js -> webiny.js. Running webiny deploy-api after produces

This is the first deploy of local environment, so it may take a few minutes.
Here's 🍎 to make the time pass faster :)
💡 Loaded local environment from /Users/mac/Work/Projects/webiny-js/sample-project/.env.json...
💡 Loaded local environment from /Users/mac/Work/Projects/webiny-js/sample-project/api/.env.json...
Error: Template file was not found! Make sure your serverless file has either ".yml" or ".yaml" extension.
    at findFile (/usr/local/lib/node_modules/@webiny/cli/sls/template/serverless.js:29:11)
    at Template.default (/usr/local/lib/node_modules/@webiny/cli/sls/template/serverless.js:47:26)
    at async module.exports (/usr/local/lib/node_modules/@webiny/cli/sls/execute.js:33:20)
    at async module.exports (/usr/local/lib/node_modules/@webiny/cli/sls/deploy.js:93:38)
    at async Object.handler (/usr/local/lib/node_modules/@webiny/cli/cli.js:71:9)

that's where I'm stuck. What can be done to address this one?

Sven
@SvenAlHamad
Hey Alex, we’re slowly moving away from gitter to slack. Can you please post your message there and some will help you out. https://www.webiny.com/slack
@asashay
Alex Oliynyk
@asashay
sure, thanks!
Bill Barthel
@bbarthel
Any thoughts about getting pass create-webiny-project error logging #1093?