Coder Social home page Coder Social logo

coder / deploy-code-server Goto Github PK

View Code? Open in Web Editor NEW
845.0 845.0 631.0 14.83 MB

Deploy code-server to the cloud with a few clicks โ˜๏ธ ๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป

License: MIT License

Dockerfile 17.39% Shell 52.72% TypeScript 27.93% JavaScript 1.97%

deploy-code-server's Introduction

Self-Hosted Cloud Development Environments



Quickstart | Docs | Why Coder | Enterprise

discord release godoc Go Report Card license

Coder enables organizations to set up development environments in their public or private cloud infrastructure. Cloud development environments are defined with Terraform, connected through a secure high-speed Wireguardยฎ tunnel, and are automatically shut down when not in use to save on costs. Coder gives engineering teams the flexibility to use the cloud for workloads that are most beneficial to them.

  • Define cloud development environments in Terraform
    • EC2 VMs, Kubernetes Pods, Docker Containers, etc.
  • Automatically shutdown idle resources to save on costs
  • Onboard developers in seconds instead of days

Quickstart

The most convenient way to try Coder is to install it on your local machine and experiment with provisioning cloud development environments using Docker (works on Linux, macOS, and Windows).

# First, install Coder
curl -L https://coder.com/install.sh | sh

# Start the Coder server (caches data in ~/.cache/coder)
coder server

# Navigate to http://localhost:3000 to create your initial user,
# create a Docker template, and provision a workspace

Install

The easiest way to install Coder is to use our install script for Linux and macOS. For Windows, use the latest ..._installer.exe file from GitHub Releases.

curl -L https://coder.com/install.sh | sh

You can run the install script with --dry-run to see the commands that will be used to install without executing them. Run the install script with --help for additional flags.

See install for additional methods.

Once installed, you can start a production deployment with a single command:

# Automatically sets up an external access URL on *.try.coder.app
coder server

# Requires a PostgreSQL instance (version 13 or higher) and external access URL
coder server --postgres-url <url> --access-url <url>

Use coder --help to get a list of flags and environment variables. Use our install guides for a full walkthrough.

Documentation

Browse our docs here or visit a specific section below:

  • Templates: Templates are written in Terraform and describe the infrastructure for workspaces
  • Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
  • IDEs: Connect your existing editor to a workspace
  • Administration: Learn how to operate Coder
  • Enterprise: Learn about our paid features built for large teams

Support

Feel free to open an issue if you have questions, run into bugs, or have a feature request.

Join our Discord to provide feedback on in-progress features, and chat with the community using Coder!

Integrations

We are always working on new integrations. Feel free to open an issue to request an integration. Contributions are welcome in any official or community repositories.

Official

Community

Contributing

We are always happy to see new contributors to Coder. If you are new to the Coder codebase, we have a guide on how to get started. We'd love to see your contributions!

Hiring

Apply here if you're interested in joining our team.

deploy-code-server's People

Contributors

afmsavage avatar aknbdev avatar bpmct avatar brunoquaresma avatar chengxuncc avatar coffee-cup avatar dependabot[bot] avatar elliott-king avatar forumplayer avatar gbraad avatar ghuntley avatar hjue avatar hrichiksite avatar hunterheston avatar itsnydell avatar jsjoeio avatar khaki32 avatar rpxs avatar sauravdharwadkar avatar sksmta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deploy-code-server's Issues

Can't install node modules

Hi, I deployed a code-server on railway. I successfully opened the port for a vanilla javascript.
But, when I start working on a react project, I always seems to failed on the npm install part.

Every time I tried to install node module, it will run a little bit, then killed the process.

This is the error I got (not the same package everytime)

npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@typescript-eslint/[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.13.0 || ^14.15.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0', npm: '>=6' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >= 16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || >=16' },
npm WARN EBADENGINE   current: { node: 'v15.14.0', npm: '7.7.6' }
npm WARN EBADENGINE }
Killed    .........] / reify:fsevents: sill reify mark deleted [ '/home/coder/project/node_modules/fse

I don't think this is the node version problem, because I redeployed it a few times with version 14 and still got killed during npm installation.

Red square around Russian letters

I am deploy code-server on linux machine, but when I type Russian letters, it highlights certain ones with a red square.
Is there any way to fix this?
image

Opening Ports?

How would I open ports on Railway? I'm running live-server for my HTML projects, but I can't seem to access certain ports. Services like ngrok and localtunnel work, but they always seem to stop running after a while. Google Cloud lets you open ports very easily, so is there a similar way to do it for Railway.

Thanks!

rclone not auto sync

hi there, i'm just trying deploy to heroku and notice that rclone seems like not auto sync and not displaying push or pull rclone button in editor.

here are 2 way try to reproduce:

  • first:
    • i'm deploy using deploy-code-server via heroku template
    • the value of RCLONE_AUTO_PULL and RCLONE_AUTO_PUSH im not set in heroku variable which by default is true
  • second:
    • deploy using deploy-code-server via heroku template
    • the value of RCLONE_AUTO_PULL and RCLONE_AUTO_PUSH im set in heroku to true

is there any wrong with my reproduce?

auto reset on heroku

why every 1 hour get auto reset from heroku??, how to solve it. The data that I coded disappeared instantly. help

add a CLI

Create a command-line tool for configuring & deploying code-server instances to the cloud. This aims to solve two problem:

  1. creating a new dev cloud environment is repetitive
  2. creating test environments for code-server (for testing issues) can be difficult - @jsjoeio's idea ๐Ÿ’ก

This will be good for creating consistent dev workspaces or test environments for code-server. For example

# launch an ubuntu server with nginx
$ lcs --ubuntu nginx
Creating...
Access your server at https://x.x.x.x:80
Password: asd832sd

# launch a blank ubuntu server and get SSH access
$ lcs --ubuntu blank
...

# launch an ubuntu server configured with code-server --link and 2 GB memory
$ lcs ubuntu --link --mem 2
...

# launch with custom Dockerfile
$ lsc ubuntu --link --dockerfile python/Dockerfile

I am planning on supporting this with the Vultr because of their developer-friendly API.

JDK Downloading to deploy-code-server

In issue #21, I learned how to add node.js into the server, but am still struggling to find a way to do so with JDK 1.8, 11, 14, and 16, online. Could someone help me out please, it would mean a lot! Thanks!

java not installing

Step 6/14 : RUN heroku plugins:install java

 ---> Running in 57dc79ca6c15

/bin/sh: 1: heroku: not found

The command '/bin/sh -c heroku plugins:install java' returned a non-zero code: 127

I also tried sudo apt-get install openjdk-8-jre which is mainly i want even that getting error

Error connecting to your code-server instance

I am trying to deploy code-server on a Hetzner cloud server... I expected this to be the same process as for digitalocean because after all it's just an Ubuntu server and there is also the option with Hetzner to specify User Data (i.e. the install script).

But when I navigate to the IP of the new server, I get the initial github link/authentication screen, and after agreeing to this, I then get:

Error connecting to your code-server instance
Ensure code-server is running and was properly started with the --link command line flag.

image

[Question] How to Update

So, I am using this method of using this application, and it seems to me that although it gives notification of a new release is out, it doe not have the ability to update. If I am missing something, please tell me how to update to the most recent version. Thanks!

can't access code-server on AWS

Hi, I'm unable to access my code-server on AWS; opened http port on the VM and in AWS security rule, I'm struggling to troubleshoot this one, the code-server and coder-redirecter are running, can you give me some tips here?

Coder-Server can't connect because of this Error

Hi,

Unfortunately the Code Server always crash, to fix it I need to restart the service. Can somebody please help??

     Memory: 781.5M
     CGroup: /system.slice/system-code\x2dserver.slice/[email protected]
             โ”œโ”€21912 /usr/lib/code-server/lib/node /usr/lib/code-server
             โ”œโ”€21931 /usr/lib/code-server/lib/node /usr/lib/code-server
             โ”œโ”€21943 /usr/lib/code-server/lib/coder-cloud-agent bind --code-server-addr=127.0.0.1:34247
             โ”œโ”€21959 /usr/lib/code-server/lib/node /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork --type=ptyHost
             โ”œโ”€22198 /usr/lib/code-server/lib/node /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork --type=watcherServiceParcel
             โ”œโ”€22212 /usr/lib/code-server/lib/node /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork --type=extensionHost --uriTransformerPath=>
             โ”œโ”€22247 /home/coder/mcdonalds_poc/cdk_patch_manager_asg_windows_2019/.venv/bin/python /home/coder/.local/share/code-server/extensions/ms-python.pyth>
             โ”œโ”€22263 /usr/lib/code-server/lib/node /usr/lib/code-server/vendor/modules/code-oss-dev/extensions/json-language-features/server/dist/node/jsonServer>
             โ”œโ”€22276 /usr/lib/code-server/lib/node /home/coder/.local/share/code-server/extensions/amazonwebservices.aws-toolkit-vscode-1.35.0/dist/src/ssmDocume>
             โ”œโ”€22338 /usr/bin/bash
             โ”œโ”€22429 /usr/lib/code-server/lib/node /home/coder/.local/share/code-server/extensions/amazonwebservices.aws-toolkit-vscode-1.35.0/dist/src/stepFunct>
             โ””โ”€23050 /home/coder/mcdonalds_poc/cdk_patch_manager_asg_windows_2019/.venv/bin/python /home/coder/.local/share/code-server/extensions/ms-python.pyth>

Jan 24 13:15:58 cdk-coder-1 code-server[21912]: [13:15:58] [127.0.0.1][2bbd0ffa][ExtensionHostConnection] <22000> Extension Host Process exited with code: 0, sig>
Jan 24 13:16:09 cdk-coder-1 code-server[21912]: [13:16:09] [127.0.0.1][699f94d1][ManagementConnection] New connection established.
Jan 24 13:16:11 cdk-coder-1 code-server[21912]: [13:16:11] [127.0.0.1][8b43cf37][ExtensionHostConnection] New connection established.
Jan 24 13:16:11 cdk-coder-1 code-server[21912]: [13:16:11] [127.0.0.1][8b43cf37][ExtensionHostConnection] <22212> Launched Extension Host Process.
Jan 24 14:14:02 cdk-coder-1 code-server[21912]: [2022-01-24T14:14:02.897Z] info  2022/01/24 14:14:02 [ERR] yamux: Failed to read header: failed to get reader: fa>
Jan 24 14:14:02 cdk-coder-1 code-server[21912]: [2022-01-24T14:14:02.898Z] info  2022-01-24 14:14:02.896 [WARN]        <proxy.go:48>        code-server proxy exi>
Jan 24 14:14:09 cdk-coder-1 code-server[21912]: [14:14:09] [127.0.0.1][699f94d1][ManagementConnection] The client has disconnected, will wait for reconnection 3h>
Jan 24 14:14:09 cdk-coder-1 code-server[21912]: Error: Unexpected SIGPIPE
Jan 24 14:14:09 cdk-coder-1 code-server[21912]:     at process.<anonymous> (/usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap.js:1:370)
Jan 24 14:14:09 cdk-coder-1 code-server[21912]:     at process.emit (events.js:400:28)

Push and pull from separate google drive subdirectories using rclone

I'm using heroku, so I need to use rclone and am using google drive as remote. In my google drive, I set a root folder to push and pull from. But whenever I start the container, it auto-pulls everything in that folder. But what if I wanted to

  1. open a blank project in code-server
  2. assign its remote to a new subdirectory in said root folder
  3. push changes and then be able to do the same thing for other projects

that way, if I start up the instance, I can selectively pull from any subdirectory (which are the projects) and then push to them as well. This would be more organized and efficient instead of pulling the entire folder. I'm sure there's a way to do this but couldn't find much in the rclone documentation.

Besides that, my experience using code-server has been really positive so far and as a student, heroku + rclone comes in handy too. Thanks for the detailed setup guide!

Base install does not contain a Procfile for heroku

I cloned the repo and added python buildpack.

When I try to spin up a dyno, I am getting an error for no Procfile but I don't understand what to put in the procfile, pointing it to the install locations is not working.

how to change work dir

so i want to put all my git clones files in one single dir
should I add this in the # Install stuff u want or replace here in # Fix permissions for code-server

RUN mkdir -m 777 'work'
RUN chmod +x 'work'
RUN %cd 'work'

Docker and rclone?

Is there something I can add to the Dockerfile to get Docker CLI. I tried installing it, but it wouldn't work. I'm running it code-server on Railway. Also, is there a way to mount rclone? I keep running into fuse errors that I can't fix.

Thanks!

Haxe doesnt work very well

secifically HaxeFlixel, OpenFL, and Lime


โฌ‡๏ธ Here are the links to the websites โฌ‡๏ธ

Haxe โ€Žโ€โ€โ€Ž โ€Žโ€Žโ€โ€โ€Ž โ€ŽHaxeflixelโ€Žโ€โ€โ€Ž โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€Žโ€โ€โ€Ž โ€ŽOpenFLโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€Žโ€โ€โ€Ž โ€Žโ€Žโ€โ€โ€Ž โ€ŽLime
โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€Žโ€Žโ€Žโ€Ž โ€โ€โ€Ž โ€Žโ€โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€โ€โ€Ž โ€Ž โ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€โ€โ€Ž โ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€ โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Žโ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž โ€Žโ€โ€โ€Ž

When I test my haxeflixel game using
lime test html5
it did everything it was supposed to do, it built the game and opened up a server on port 3000 with the game loaden up on it so i could test it

only problem was that it didn't serve any of the content except for the .html file it generated even though it was also supposed to serve a .html file a .png file and .js file.

so i got a console error that said this

โŒ Failed to load resource: the server responded with a status of 500 ()   4K-Engine.js:1

โŒ Uncaught ReferenceError: lime is not defined                            3000:94
     at 3000:94

โŒ Failed to load resource: the server responded with a status of 500 ()   favicon.png:1

The .js file

So what this means is it didn't serve the .js file which whas this one 4K-Engine.js

Note: (4K-Engine is the name of the game im developing btw) here is a link to the github repo for my game โชโชโช clone it if you want to reproduce it which i will explain how to do in a second

the .js file is what had everything the game needed to run

the .html file was the only thing that was actually served but its really useless without the 4K-Engine.js file here is why

๐Ÿ”ฝ this part ๐Ÿ”ฝ

โŒ Uncaught ReferenceError: lime is not defined                            3000:94
     at 3000:94

is whining about some javascript code automatically embedded in the html tag
๐Ÿ”ฝ here is the script tag im talking about ๐Ÿ”ฝ

<script type="text/javascript">
	lime.embed ("4K-Engine", "openfl-content", 1280, 720, { parameters: {} });
</script>

Lime was defined in the 4K-Engine.js file but again the 4K-Engine.js file wasn't served
(Btw Lime is what is reccomended to build haxeflixel projects with)
and if you couldnt tell already lime is also used to embed the content into the webpage

The .png file

I dont really care about the fucking favicon logo since I don't really need it to load the game

reproducing the bug

Here is how you reproduce the bug

Open the games folder in code server so that it is the root directory

Open the integrated terminal

1 type this to automatically build and run a server withe the game loaded on it
lime test html5 (also it has to be this command)

2 then go to this url
url.codeserver.is.being.hosted.on/proxy/3000

3 open up the developer console (this is done differently with every web browser)

  • in google chrome you press Ctrl+Shift+I
    • then click the console tab
  • in firefox there is two ways
    • you can click Browser Console in the Web Developer sub menu
    • or you can press `Ctrl+Shift+J on your keyboard
  • idk how to do it on opera

btw

the only reason im not submitting this isuue on lime's github repo is because i haven't had this problem with any other web based ides like Gitpod and GoormIde and iv'e also had similar problems with other programming languages like java (also java is a bad example cuz of how ancient and hard to work with it is but it was the first example that came to mind so yeah) and even ad a similar problem when testing a vscode extension im developing which ill post an issue for in a few days cuz writing details issues is really time consuming so umm yeah


btw again

If this problem is my fault tell me cuz being educated is what keeps me from being a dumbass

Info

  • Operating System: ChromeOS
    • System Version: 89.0.4389.130 (Official Build) (64-bit)
  • Code Server Host: Railway
  • Code Server Version: 3.9.3
    • Vscode Version: 1.54.2

pip install requests gives error on heroku

Step 11/18 : RUN pip3 install requests

 ---> Running in 95687186f94c

Collecting requests

  Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)

Collecting certifi>=2017.4.17 (from requests)

  Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB)

Collecting chardet<5,>=3.0.2 (from requests)

  Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)

Collecting idna<3,>=2.5 (from requests)

  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)

Collecting urllib3<1.27,>=1.21.1 (from requests)

  Downloading https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl (153kB)

Installing collected packages: certifi, chardet, idna, urllib3, requests

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/coder/.local/lib'

Check the permissions.

The command '/bin/sh -c pip3 install requests' returned a non-zero code: 1

I tried to install request at beginning and got this

Error on Heroku

Item could not be created:
We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.

Unable to access superuser privilege (Heroku)

I have installed code-server on Heroku. I want the superuser privileges but when I type sudo the following is the output.
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Can you provide some help?

how $password var is used

can someone help me understand how do you pass $password to code-server build? will $password var be logged anywhere in cleartext? I refer to container deployment with railway
thanks

ENOMEM error.

Server was running slower since i opened it, and saw yesterday that my specs (server) says:
image

I'm asking myself how can some files have 230GB so far in size...

I also get errors such as:
image

This cause a lot of errors, such as ENOTEMPTY.
I googled that "killed error" and it resulted to ENOMEM, warn i get on downloading any package.

image

Allow Remote Support for Packages

I am looking for support for packages, like NODE, PIP, etc., without having to download them and put them in manually, if there even is a way. The reason for this is, I use this way to code on VSCode remotely, because the school has Linux Beta on the student chromebooks blocked/disabled, which means, I cannot use the feature to open the .deb (Debian) files for NODE.js, to download it to my chromebook, as well as there being no feature that allows you to add things like that to the remote server, even if I had the capabilities to do so. If possible, could you add preinstalled packages, like NODE and PIP, into the future updates? I know this is fully possible, since an iOS app can do it, so why can't this (I won't link the repo here, unless you ask for it)?

Zeet + Heroku integration

Hey guys! I appreciate all the work you've done on code-server and deploy-code-server, really fantastic. In case you want to support more platforms to deploy, I have done an integration with Zeet and Heroku (you have it too). In case you want to use it: here is the link to repo

I'm constantly updating it to support more platforms.
Best regards.

Use Without cdr.co

How can I use this without being redirected to cdr.co? Cdr.co is bl!oc,.ked on my school computer (censoring that word for a reason)

How can I just use my digital ocean IP without redirect?

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.