Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy doesn't work #4

Open
galibov opened this issue Jan 26, 2020 · 4 comments
Open

Deploy doesn't work #4

galibov opened this issue Jan 26, 2020 · 4 comments

Comments

@galibov
Copy link

galibov commented Jan 26, 2020

Hi, I tried deploy your example, and get this errors:

  1. First I get "bucketname already exist" I changed
    ` before:deploy:deploy:
    • aws s3 cp --recursive ./.nuxt/dist/client/ s3://nuxt-serverless-at-edge/_nuxt/ --cache-control "max-age=31536000,public,immutable"
    • aws s3 cp --recursive ./static/ s3://nuxt-serverless-at-edge/ --exclude "README.md" --cache-control "max-age=31536000,public,immutable"`

To this:

after:deploy:deploy: - aws s3 cp --recursive ./.nuxt/dist/client/ s3://nuxt-serverless-at-edge/_nuxt/ --cache-control "max-age=31536000,public,immutable" - aws s3 cp --recursive ./static/ s3://nuxt-serverless-at-edge/ --exclude "README.md" --cache-control "max-age=31536000,public,immutable"

  1. After fixed first error i get this:
    ERROR

The request could not be satisfied.

The Lambda function returned an invalid request or response to CloudFront.
Generated by cloudfront (CloudFront)

Please, can you update configuration? Thanks!

@ivarvermeulen
Copy link
Owner

s3 bucket names need to be unique, so you need to alter the name of the bucket 'nuxt-serverless-at-edge' to something unique, you will need to alter that name for every occurrence in the serverless.yaml file

@galibov
Copy link
Author

galibov commented Jan 27, 2020

Yes, I know it and put unique bucket name, but still it doesn't work.

@ivarvermeulen
Copy link
Owner

Are you still getting a deploy error or and error when requesting the Cloudfront url?

@galibov
Copy link
Author

galibov commented Jan 27, 2020

After I change "before:deploy:deploy" on "after:deploy:deploy" I start get error when requesting to the Cloudfront url. I used your example from this repo, just changed bucketname and deploy queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants