Giter VIP home page Giter VIP logo

globe's Introduction

globe's People

Contributors

salakar avatar codekeyz avatar kaziwaseef avatar ehesp avatar lesnitsky avatar hereeast avatar anasfik avatar abausg avatar mhadaily avatar exaby73 avatar rrousselgit avatar

Stargazers

M Haidar Hanif avatar xiaoluo avatar Jonas avatar Steven John avatar Bruno Gomes avatar Donald Chinhuru avatar Ehnamuram Enoch avatar Brice avatar Turtuvshin Byambaa avatar Enzo Lizama Paredes  avatar Jacob Cable avatar Suresh K avatar German Castro avatar  avatar Pratap Singh avatar Madson Mac avatar Gideon Salami avatar Alpha-00 avatar Syed Mujtaba Nazki avatar Mohammad El Shaari avatar  avatar Alvish Ramani avatar Jake Wilson avatar Chandra Sekhar Kode avatar  avatar Joshua Mabina avatar SOUM SOMON avatar Roman avatar RyosukeOK avatar mori yuta avatar Filippo Menchini avatar Elikem Medehou avatar Safiul islam avatar Nero Song avatar Prateek Sharma avatar Peter Scully avatar Manuel avatar Kim.Taekwon avatar Muhammad Yusuf avatar Santa Takahashi avatar Hosam Hasan Ramadan avatar Hideki Tsuruoka avatar mono — Masayuki Ono avatar HenriqueNas avatar Ayase Minori avatar Jonas Schlauch avatar MrlolDev avatar st merlhin avatar Sven Hohlfeld avatar  avatar Michael Worthington avatar Vasconcelos Dev avatar  avatar Juan Carlos Ramón Condezo avatar Marjan DavoodiNejad avatar Jaydan Urwin avatar Amin Memariani avatar HPanda avatar Tristan Drummond avatar Luis Ciber avatar Pavel Ryabov avatar Shahad avatar Mais Alheraki avatar Marco Germani avatar Boris avatar Hamza Imran avatar Rahmi Tufanoglu avatar Shady Aziza avatar Akshay Shinde avatar Erick Ghaumez avatar Vinoth Vino avatar Kim Jiun avatar Ali Al-Dhamen avatar nomad avatar Lex  avatar Felix Lee avatar Dung Nguyen Minh avatar  avatar Aman Sikarwar avatar Kosei Akaboshi avatar Samuel Twumasi avatar Francisco Pitriqueo avatar Emanuel Muroni avatar Bright Etornam Sunu  avatar Nasreddine Elghozi avatar Jeremiah Ogbomo avatar Darja Orlova avatar Marcin Jeleński avatar Elijah Luckey avatar Hafeez Rana avatar Abdullah Al Mahmud avatar Tomasz Rejdych avatar Darren Baldwin avatar Clarissa Gazala Evanthe avatar AZKA avatar Mark Videon avatar  avatar Luís Gustavo avatar Temitope Ajiboye avatar Ilyas LEFEBVRE avatar

Watchers

Darren Ackers avatar  avatar  avatar  avatar Dillon Nys avatar  avatar Karlo Verde avatar Domrachev Dmitriy avatar

globe's Issues

request: Update dependencies to use Serverpod CLI 2.0.0

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

globe deploy should updated to run [dart pub global activate serverpod_cli 2.0.0] behind the scenes

Reasoning

fail to deploy projects created with serverpod_cli 2.0.0

Additional context and comments

No response

Deploying dart frog project with postgres database

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

While deploying dart frog application with no database configured works perfectly. A POC works great but when I try deploying a dart project with a database (postgres) configured. I am getting a 500 error.
Screenshot_20240604_120242_Chrome

Reasoning

I feel deploying dart frog backend app is a breeze in globe. If postgres or anyother db is supported then, many devs can start using dart as backend. Atleast I would.

Additional context and comments

No response

request: Edit Environment variables

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

I can't find an option to update environment variables in settings.

Reasoning

change and update variables

Additional context and comments

No response

bug: When deploying Dart Frog project to globe getting issue as: A directory corresponding to fileSystemPath "public" could not be found

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.5

Project ID

44402c9f-bea5-48a5-a925-5611b6d21d98

Description

Cannot deploy to Globe with public folder included.

Steps to reproduce

When deployed Dart frog project without a public folder for static file serving, it deploys fine.
But when adding static files in public and redeployed getting an issue as Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found.

Expected behavior

It should deploy without any issue

Screenshots

No response

Additional context and comments

Full log from Globe build log:

22:39:05.220
Start the production server by running:
22:39:05.221
22:39:05.221
dart build/bin/server.dart
22:39:05.390
22:39:05.390
Compiling entrypoint "/workspace/archive/build/bin/server.dart"...
22:39:05.390
Running command: dart compile exe /workspace/archive/build/bin/server.dart -o /workspace/archive/.globe_build/dc10cbf6-04b6-4021-9ebc-564cec0fb182.exe --verbosity=warning
22:39:05.391
22:39:10.109
Generated: /workspace/archive/.globe_build/dc10cbf6-04b6-4021-9ebc-564cec0fb182.exe
22:39:10.143
Successfully completed step BUILD.
22:39:10.143
Step BUILD took 31961ms
22:39:10.934
Starting step VERIFY.
22:39:12.411
Failed to verify deployment. Status: 503
22:39:12.411
Unhandled exception:
22:39:12.411
Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found
22:39:12.411
#0 createStaticHandler (package:shelf_static/src/static_handler.dart:50)
22:39:12.411
VeryGoodOpenSource/dart_frog#1 createStaticFileHandler (package:dart_frog/src/create_static_file_handler.dart:7)
22:39:12.411
VeryGoodOpenSource/dart_frog#2 createServer (file:///workspace/archive/build/bin/server.dart:19)
22:39:12.411
VeryGoodOpenSource/dart_frog#3 main (file:///workspace/archive/build/bin/server.dart:15)
22:39:12.411
VeryGoodOpenSource/dart_frog#4 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:297)
22:39:12.411
VeryGoodOpenSource/dart_frog#5 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
22:39:12.411
22:39:12.411
{
22:39:12.411
"code": "exit",
22:39:12.411
"description": "Process exited.",
22:39:12.411
"trace": "unknown:7543089f22c298ffb766a4d90de6f8c3",
22:39:12.411
"time": "2024-01-31T17:39:12.383830Z",
22:39:12.411
"exit_code": "255"
22:39:12.412
}
22:39:12.414
Step VERIFY took 1479ms
22:39:12.414
Step VERIFY failed.

bug: Breaking links in docs

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

N/A

Project ID

N/A

Description

Some of the links in the getting-started folder, located within the docs folder, are broken. Clicking on these links results in a 404 error page. I have attached screenshots for clarity.

Steps to reproduce

To reproduce the bug, navigate to the /docs/getting-started/ directory and open any of the files. For example, if you choose the index.mdx file, you will notice that the links for "Backend Shelf Server" and "Frontend Flutter Web Application" are broken.

Expected behavior

The links should work as expected when clicked.

Screenshots

Screenshot 2024-04-02 024450

Additional context and comments

I would appreciate being assigned to this issue.

bug: Deactivate build_runner problems

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.9

Project ID

1407ad6f-1151-41ad-8870-9feaa00a292a

Description

When build_runner is deactivated in the Settings,
the build_runner apparently still runs. The build fails with the following log:

Starting BUILD_RUNNER
FormatException: Package
❌ BUILD_RUNNER
🏁 BUILD_RUNNER took 14ms

Steps to reproduce

  1. Deactivate a build_runner and watch it still being triggered

Expected behavior

I do not expect the build_runner to run.

Screenshots

image

Additional context and comments

No response

bug: Deploy via CLI always failed

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.7

Project ID

886cd2a0-5e5c-480d-b3bc-8438aabcc7ea

Description

when globe deploy --prod always failed. i have tried 2 times fro different project. but if i use github to deploy (success).

Steps to reproduce

  • globe login
  • globe deploy --prod
  • fill project info
  • Deployment failed

Expected behavior

Deployed (deploy success)

Screenshots

image

Additional context and comments

globe build-logs --deployment="a791305e-45df-4290-b09b-82d37350fdd3"

image

[request] Add Support Dart Framework ALFRED

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

as a developer who is used to using node js express as an api, now I moved to dart and I found a framework that is similar to express in dart

here he is

ALFRED A performant, expressjs like web server / rest api framework thats easy to use and has all the bits in one place

Reasoning

Of all the frameworks, Alfred is the easiest because the syntax is similar to Express JS

Additional context and comments

I hope you can support this framework in the world, thank you

bug: Cannot Sign In to Globe

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.7

Project ID

none

Description

i cannot sign in to globe.

condition:

  • check internet connection: Good
  • check globe CLI: Good
  • project: ready to deploy (with/without) github

Steps to reproduce

step:

  • login via google, choose account google, loading, but then redirect to login page again
  • login via CLI, choose account github, loading, but then redirect to login page again

Expected behavior

login successfully

Screenshots

No response

Additional context and comments

No response

request: Make it possible to delete a project

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

i want delete my globe project, but there are no action to delete project.
Screenshot_1

Reasoning

the project no need again

Additional context and comments

No response

Workaround [dotenv] Load failed: file not found: File: '.env'

For future readers:

package:dotenv tries to read .env file form the file system, but we only deploy dart executable without any files.
If you deploy from CLI, it will pick up your .env and prompt you to create env vars on Globe.
You could also go to Project > Settings > Environment variables and create env vars there manually.

To workaround this issue, you could do something like this:

var env = Platform.environment['GLOBE'] == 'true' ? Platform.environment : DotEnv().load();

We're working on fixing this issue and this workaround is temporary.

request: Add support for gRPC

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

Is it compatible with grpc ?

Reasoning

because grpc is cool

Additional context and comments

No response

request: Make it clear that the project should be re-deployed after settings/env vars are updated

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

I'd like to have a button that says "Re-deploy" if I update settings/env vars.

Reasoning

There's a bit of confusion about env vars and it's not clear that the project should be deployed again in order to new env vars be available for the deployment

Additional context and comments

Discord discussion: https://discord.com/channels/1179425190007021568/1214890391250145290

bug: I cant deploy anymore

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.1.1

Project ID

7cfeb187-c5fa-4788-b211-47c669ace4c5

Description

I got an error
"FormatException: Project"

Steps to reproduce

run "globe deploy --prod"

Expected behavior

deployin the app

Screenshots

No response

Additional context and comments

No response

bug: can not login in google's project idx (dart-shelf API server project)

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.12

Project ID

N/A

Description

Can not login on Google's Project IDX ( Dart-Server-App ) template

Steps to reproduce

  1. Go to Googles Project IDX web portal : https://idx.google.com
  2. create new dart project description ( Build API server with dart ).
  3. it will automatically build and run, just to confirm everything is working fine.
  4. open terminal.
  5. install globe cli ( it was version 0.0.12 ).
  6. globe login : it will show you link but that link not working, when click on it, it say (Not found.) on webpage.

Expected behavior

login link should work properly

Screenshots

Screenshot 2024-09-26 at 8 21 26 PM

Additional context and comments

No response

bug: Can't login in WSL 2.

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.2+1

Project ID

N/A

Description

Windows paths are disabled in WSL 2.

Steps to reproduce

$ globe login

Expected behavior

Globe should print the link to the login page.

Screenshots

No response

Additional context and comments

No response

request: Add support for having access to Environment Variables during build_runner phase

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

As a developer, I want to be able to set values of the environment variables in a class for better type safety. Packages currently exist such as envied that does this using build_runner.

Reasoning

If the environment variables were avail during build_runner stage, then they can be set into a generated class and we can ensure type safety for environment variables, and have Platform.environment work in prod and .env file locally.

Additional context and comments

Update documentation.

bug: can't deploy flutter project with dart version 3.3.4

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.10

Project ID

9b453279-b4b9-405e-970a-3809eeec4ff4

Description

I'm trying to deploy my flutter project but it's fail
it's asked for Dart version 3.2.6
but My Dart version newest it is 3.3.4.

Steps to reproduce

deploy a project with dart version '>=3.2.6 <4.0.0'

Expected behavior

Deploy my project

Screenshots

image

Additional context and comments

No response

request: Support Vania WebServer

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

There is no support for Vania.

Reasoning

Vania have all the modern features available.

Additional context and comments

No response

bug: Build logs don't show

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.11

Project ID

129a0782-db12-4402-97f7-0a99a6f591cb

Description

When triggering a build over the CLI, the build logs are not shown:

globe build-logs --deployment="129a0782-db12-4402-97f7-0a99a6f591cb"
Globe API Error.
There was an issue calling the Globe API, please try again.
 Use verbose mode using the --verbose flag for more details.
Unhandled exception:
Instance of 'ApiException'
#0      GlobeApi._handleResponse (package:globe_cli/src/utils/api.dart:62:7)
#1      GlobeApi.getDeployment (package:globe_cli/src/utils/api.dart:205:22)
<asynchronous suspension>
#2      BuildLogsCommand.run (package:globe_cli/src/commands/build_logs_command.dart:39:24)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#4      GlobeCliCommandRunner.run (package:globe_cli/src/command_runner.dart:108:14)
<asynchronous suspension>
#5      main (file:///Users/ftodaP/.pub-cache/hosted/pub.dev/globe_cli-0.0.11/bin/globe.dart:15:5)
<asynchronous suspension>

On globe.dev, the logs also don't show up.

Steps to reproduce

I guess it is dependent on the error type? I'm not sure how to reproduce.

Expected behavior

I would expect to see the logs.

Screenshots

No response

Additional context and comments

No response

bug: globe create -t doesn't work #556

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

latest

Project ID

no-id

Description

Failed to create project from template. (58ms)
PathNotFoundException: Cannot open file, path = '/var/folders/pn/ft58q8k55058gh35cdpbbxsh0000gn/T/b9gI4U/.git/info/sparse-checkout' (OS Error: No such file or directory, errno = 2)```

Steps to reproduce

globe create -t notes_app_shelf

Expected behavior

should create new project with template

Screenshots

No response

Additional context and comments

No response

bug: Solving sibling dependencies in a monorepo via cli

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.2+1

Project ID

c1d0e2fd-dc3b-4894-be02-e114e1d7d4d7

Description

In a mono repo i get an error when deploying a project with a dependency on an other local package out of it's own scope (siblings in this case)

repo structure:

  • app (flutter)
  • shared (dart)
  • server (dart)

The 'app' and server depend on shared and are globe projects.

Error on deployment of the projects:

Resolving dependencies...
Because app depends on shared from path which doesn't exist (could not find package shared at "../shared"), version solving failed.

How would one deploy two projects within the same codebase? Especially when local dependencies aren't in the projects scope?

Steps to reproduce

I created a minimal version.

  • Clone the repo
  • run globe deploy at either app or server, both having a dependency on shared.

Expected behavior

globe deploy should run smoothly with a local dependency out of its own scope.

Screenshots

No response

Additional context and comments

No response

bug: Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found [dart_frog as sub-package]

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.10

Project ID

55aaee1f-fe1b-4016-a9b7-16c2c25b86da

Description

I've got this project structure:

project
-backend
--public
-frontend
-shared

3 dart packages, where backend is package with dart_frog server

After deploying it successfully using:

globe deploy

I've got this error in globe logs:

Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found

I was able to reproduce it locally running:

project % dart backend/build/bin/server.dart

The issue is that this code is run from root directory project

When I run it like this:

project % cd backend && dart build/bin/server.dart

Everything works fine.

The issue is I cannot do setup this in Globe settings. Because I can only pass path to entrypoint and cannot execut custom run code.

Steps to reproduce

I've got this project structure:

project
-backend
--public
-frontend
-shared

3 dart packages, where backend is package with dart_frog server

After deploying it successfully using:

globe deploy

I've got this error in globe logs:

Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found

I was able to reproduce it locally running:

project % dart backend/build/bin/server.dart

The issue is that this code is run from root directory project

When I run it like this:

project % cd backend && dart build/bin/server.dart

Everything works fine.

The issue is I cannot do setup this in Globe settings. Because I can only pass path to entrypoint and cannot execut custom run code.

Expected behavior

After deploying it successfully using:

globe deploy

Ther should be no error.

Screenshots

image

image

Additional context and comments

No response

globe deploy should respect .gitignore

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

Respect .gitignore when deploying via Globe CLI.

Reasoning

This suggests the whole directory is uploaded when deploying via Globe CLI. It makes sense to respect .gitignore to avoid any inconsistencies between CLI deployments and GitHub integration.

Additional context and comments

No response

request: Envied package support for flutter web builds

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

As a developer I want to use envied package to generate environment variables on build time for my flutter web projects.

Reasoning

I have backend urls and other config values which are different in local and prod and I want to use environment variables to configure them.

Additional context and comments

No response

bug: Redirect loop detected when running globe deploy

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.9+3

Project ID

2f660d10-2f92-43d4-b000-7ff186b7f06c

Description

I created a Dart shelf app and when I try to deploy it with the CLI I get this error:

globe deploy --verbose
Verbose logging enabled.
❓ Link this project to Globe "/Users/andrea/work/codewithandrea/github/flutter/openai_dart_shelf_flutte
❓ Link this project to Globe "/Users/andrea/work/codewithandrea/github/flutter/openai_dart_shelf_flutter/shelf_backend"? (Y/n) Yes
Fetching user organizations
API Request: GET /user/orgs
Redirect loop detected

Steps to reproduce

Follow these steps:

git clone https://github.com/bizz84/openai_dart_shelf_flutter
cd openai_dart_shelf_flutter/shelf_backend
globe deploy --verbose

Expected behavior

The deployment should be completed successfully.

Instead, I get a Redirect loop detected error.

Screenshots

No response

Additional context and comments

No response

bug: if to add dot when creating a new project, it is not added to the actual project name

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

N/A

Project ID

N/A

Description

When creating a new project it is allowed to put a dot (.) to the name of the project. UI will allow it, but when the project is actually created there is no dot in the name

Steps to reproduce

  1. Go to globe.dev and press 'create project'
  2. Import any project repo from GitHub
  3. Edit the project name to contain a dot (i.e. api.my-test-project)GitHub

Expected behavior

Either not allow it on UI, or use it in the name (and domain?)

Screenshots

No response

Additional context and comments

Note: Github allows to create repositories with dot in the name

bug: Build logs don't show

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.8

Project ID

59273fa3-e34f-4684-9ad4-bc98ea7c5cf3

Description

The build
flutter build web --release --no-tree-shake-icons --web-renderer canvaskit
with target lib/main_development.dart is failing.

I would like to see the build logs, but globe build-logs --deployment="59273fa3-e34f-4684-9ad4-bc98ea7c5cf3" does not return anything. The Globe GUI is also stuck in a loading state.

Steps to reproduce

See above

Expected behavior

I expect to see building logs.

Screenshots

image

Additional context and comments

No response

request: The lifetime of deployments is not clear to me

Is there an existing feature request for this?

  • I have searched the existing issues.

Description

As a developer, when I deploy a version of my backend it is not clear to me what the lifetime of that deployment is, and whether I can delete the old deployments from having to show up in my console.

Reasoning

I think it would make sense to have only a handful of environments that are active at any point in time. And I cannot see a way to understand (from the console or from docs) on what the lifetime of my deployments are. Will the links created by Globe continue to be alive at all times?

Additional context and comments

No response

bug: Prisma client doesn't work on Globe

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.0.9+1

Project ID

72440fcd-a637-4df4-a746-c3a388a56651

Description

i re-deploy after update Globe CLI to 0.0.9+1. success.
then, when i tried access api. some api return Internal Server Error.

i have connection to Prisma ORM (mysql) inside my app. if Prisma ORM cause this error.

how to integrated/install Prisma ORM and mysql to Globe?

Steps to reproduce

  1. update Globe CLI
  2. deploy production
  3. test api, some work and some return Internal Server Error

Expected behavior

return data

Screenshots

success deploy:
image

work api:
image

not work api:
image

Additional context and comments

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.