twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
20.04k stars 2.23k forks source link

How should i see the running application in browser after deploying it to AWS LightSail #6151

Open muzzamilshaikh opened 4 months ago

muzzamilshaikh commented 4 months ago

I clone this project in AWS lightSail but when I run "sudo docker ps -a" the following containers are up and running you can see them below how can I see the running application in browser after this ? i also try to run the ping localhost:3000 but it say's name or service is not known please help

IMAGE COMMAND NAMES CREATED STATUS

twentycrm/twenty:latest "/app/entrypoint.sh …" 10 minutes ago Created
twenty-worker-1 twentycrm/twenty:latest "/app/entrypoint.sh …" 10 minutes ago Up 10 minutes (health twenty-server-1 twentycrm/twenty-postgres:latest "/opt/bitnami/script…" 10 minutes ago Up 10 minutes (health

greptile-apps[bot] commented 4 months ago

Ensure AWS LightSail instance's firewall allows traffic on port 3000. Check security group settings to allow inbound traffic on port 3000. Verify Docker Compose setup in /packages/twenty-docker/docker-compose.yml and entrypoint script in /packages/twenty-docker/twenty/entrypoint.sh for any misconfigurations. Access the application via http://<your-lightsail-instance-public-ip>:3000.

References

/packages/twenty-docker/docker-compose.yml /packages/twenty-docker/twenty/Dockerfile /packages/twenty-docker/twenty/entrypoint.sh /packages/twenty-postgres/docker/docker-compose.yml /packages/twenty-website/src/content/developers/self-hosting/docker-compose.mdx

#### About Greptile This response provides a starting point for your research, not a precise solution. Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. [Ask Greptile](https://app.greptile.com/chat/github/twentyhq/twenty/main) · [Edit Issue Bot Settings](https://app.greptile.com/apps/github)
ahmedB7r commented 4 months ago

i'm facing the same problem and when inspect it it's the backend url have two slashes before /graphql

FelixMalfait commented 2 months ago

@Freebios could you please check for the // what could be causing the confusion? Thanks!

Freebios commented 1 month ago

Thank you for raising this issue! Could you provide more details about your setup? I attempted to replicate the issue by running a Lightsail instance on Ubuntu, and I was able to successfully ping localhost and curl localhost:3000 without any problems.

It seems like there might be some confusion with the ping command. Unfortunately, ping doesn't support specifying a port number. Perhaps that's what's causing the issue. Let me know if that helps!

FelixMalfait commented 1 month ago

@Freebios I meant the "it's the backend url have two slashes before /graphql", do you know where this comes from?

FelixMalfait commented 3 weeks ago

(the reason I'm keeping this issue open is it's not the first time I hear about an issue with "two slashes" but I'm not sure what we have to fix)