Closed hxhieu closed 2 years ago
This issue has been mentioned on Strapi Community Forum. There might be relevant details there:
https://forum.strapi.io/t/strapi-deployment-in-aws-amplify/1642/9
Thanks @derrickmehaffy
hello! Is there any solution? i have delete uuid from package json and the /bin/sh: hostname: command not found it continues to appear in the amplify deploy… is there any other way? thanks!!
version: 1
backend:
phases:
preBuild:
commands:
- cd cms
- npm install
build:
commands:
- npm run build
postBuild:
commands:
- npm run start
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
Is there a working solution or planned workaround for this issue? Currently looking at getting Strapi up and running on AWS Amplify.
Also looking for this issue to be fixed or a workaround ASAP. I'm getting the same exact error when trying to build Strapi in Amplify.
/bin/sh: hostname: command not found
I would really really like to build both Strapi front and back end in Amplify.
Also looking for this issue to be fixed or a workaround ASAP. I'm getting the same exact error when trying to build Strapi in Amplify.
/bin/sh: hostname: command not found
I would really really like to build both Strapi front and back end in Amplify.
you can use patch-package to apply the fix in https://github.com/strapi/strapi/pull/12173/files until we get time to review/merge
Is there a date for when this fix will be in production as npm package without patch trick?
Is there a date for when this fix will be in production as npm package without patch trick?
We merged and fixed this back in v4.0.5
The problem persists, I'm facing the same issue as @kicaal and I'm using strapi version 4.25.7
The problem persists, I'm facing the same issue as @kicaal and I'm using strapi version 4.25.7
I recommend using Strapi on Railway.app
@justyn-clark I created a tutorial explaining how to deploy using AWS Elastic Beanstalk. it may be helpful https://medium.com/@paulo16061/how-to-set-up-strapi-on-aws-elastic-beanstalk-e9b9fa0520b7
@justyn-clark I created a tutorial explaining how to deploy using AWS Elastic Beanstalk. it may be helpful https://medium.com/@paulo16061/how-to-set-up-strapi-on-aws-elastic-beanstalk-e9b9fa0520b7
Nice! Thanks for sharing.
Bug report
Describe the bug
When hosting Strapi on a none-shell host such as Google distroless container, the start up script will crash because
node-machine
is executing a shell script to get the machine ID.Steps to reproduce the behavior
Like above
Expected behavior
Not crashing
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
System
Additional context
According to this https://strapi.io/documentation/v3.x/getting-started/usage-information.html#commitment-to-our-users-data-collection, we can opt-out the telemetry but even that the code still try to execute
node-machine
get ID. It should stop doing that if the consumer has chosen to opt-out