Coder Social home page Coder Social logo

cli's People

Contributors

aleksrutins avatar alexng353 avatar chenrui333 avatar christianivicevic avatar coffee-cup avatar farazpatankar avatar gimenete avatar grantbirki avatar gschier avatar half0wl avatar jakecooper avatar juanm04 avatar jzeuzs avatar liamcoop avatar maddsua avatar maxs-rose avatar milo123459 avatar morgangallant avatar nawok avatar ndneighbor avatar nebulatgs avatar nickpwhite avatar queer avatar railway-bot avatar rishabluthra avatar sdan avatar sharadsw avatar sunneydev avatar unasuke avatar zuchka 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

cli's Issues

`railway down` command

This could be useful for if:

  1. You don’t want to leave the terminal or IDE
  2. Your pc is poop like mine and doesn’t like having railway + vscode open

npm i -g @railway/cli is broken

Current workaround:
Install previous version:
npm i -g @railway/[email protected]

Error:
npm ERR! path /home/johnny/.nvm/versions/node/v16.15.0/lib/node_modules/@railway/cli
npm ERR! command failed
npm ERR! command sh -c node ./npm-install/postinstall.js
npm ERR! Error: Failed fetching the binary: Not Found
npm ERR! at install (file:///home/johnny/.nvm/versions/node/v16.15.0/lib/node_modules/@railway/cli/npm-install/postinstall.js:29:11)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:96:5)

`railway up` does not use .gitignore

Hi, was trying to push a simple Django project using the CLI. I have my virtual environment directory in .gitignore, but railway up fails when the virtual environment is present. It gives a message stat Library: no such file or directory. The only Library directory is inside the virtual environment. When I delete the virtual environment, railway up proceeds to push the project.

Here's a terminal session with a minimal reproducible example:

  • Make a new empty directory, cd into it
  • Run railway init, make a project called blog
  • Run railway up
    • Expect it to try to push and fail; that's what happens
  • Make a virtual environment called rw_env
  • Add that to .gitignore
  • Initialize git
  • Make initial commit
  • Run railway up
    • Fails, but doesn't even start the build process

System notes:

  • macOS 11.5.1
  • railway cli version 1.6.0
  • Python 3.10.0

railway up command throws error regarding file IO

After I link my project and I am able to access and run the project on localhost, I run the command railway up, it gives me seemingly unrelated errors such as

"lstat /Library/Application Support/Adobe: no such file or directory"

and immediately stops running.

First I got a similar error for google drive folders on my Mac and deleted them to avoid the error. And then again I got this one. What does railway up command have to do with unrelated files and folders on my Mac. There is not anything wrong with my project setup, it is actually running locally and on the railway server.

Please show me a way of getting around this error.
Thanks

Redeploying "production" with new variables GraphQL query failed with 1 errors: Not Authorized

When trying to set an environment variable inside a github action I'm getting the following error:

Run npx railway variables set HELLO="world"
==> Updated HELLO for "production"
HELLO: world

🚝 Redeploying "production" with new variables
πŸš… Redeploying "production" with new variables
πŸš„ Redeploying "production" with new variables
πŸš‡ Redeploying "production" with new variables GraphQL query failed with 1 errors: Not Authorized

The weird part is that the variable is set on the app but the failure makes the github actions fails and stops.

Here is a github action to replicate the issue:

name: Railway
on: push
jobs:
  deploy:
    runs-on: ubuntu-18.04
    env:
      RAILWAY_TOKEN: ${{secrets.RAILWAY_TOKEN}}
    steps:
      - uses: actions/setup-node@v1
        with:
          node-version: '15'
      - run: npm install @railway/[email protected] -g
      - run: npx railway variables set HELLO="world"

Generate project-wide tokens within the CLI

About this Issue

Generating an API token for the project (assuming permissions are tied to my account's permissions on specific project) in the UI is fine, but what about people who don't bothered to open the browser or in an GUI-less machine?

In order to generate it, all of prerequisites should be reached:

  • signed in to the CLI
  • has project access with atleast write to generate tokens

The command will look like this:

$ railway tokens new [--env="production"]
Token name (if left blank, we'll generate it for you): nonsense-holy-call-what (generated by CLI)
Here's your project token for this project:

============================================================
Project ID: <project-id-over-there-probably-uuidv4-ones>
Project token: railway_<SOME-RANDOM-TEXT-OVER-HERE>
============================================================

This will be the only time you see the token. If you ever lost it or get leaked, you need to revoke this one.
Keep this project token secret, as this have the same permissions as you would, preferably in an password manager
like Bitwarden and 1Password or secret management apps like HashiCorp Vault and GitHub's built-in encrypted
environment variables.

Note that there's railway_ in example token output, that because I assume that Railway will apply for GitHub's secret scanning solution in the future.

Possible Alternative Solutions

  • Copy the ~/.railway directory to other machine and removing everything expect the JWT token for the Railway API.
  • Grab the JWT token from the webapp through DevTools (sounds tricky) and do some cURLing to specific endpoints delicated to project token generation. (API is undocumented for curl usage at time of writing.)

Related Issues

  • #105 for using RAILWAY_TOKEN in commands like up, run, etc.

show commit message and branch when deploying from github actions

It would be really nice to also see the branch name and commit message in the railway dashboard when deploying with github actions.

I'm using the railway cli as described in https://blog.railway.app/p/github-actions, but right now it only seems shows the branch name and commit message for automated deployments with github hooks:

dashboard

I'm not very familiar with go, but maybe something like this could work:

var branchName = ""
var commitMessage = ""
if os.Getenv("GITHUB_ACTIONS") != "" {
  branchName = os.Getenv("GITHUB_REF_NAME")
  buffer, err := exec.Command("/bin/sh", "git log -1 --pretty=%B").Output()
  if err != nil {
    fmt.Println("error:", err)
  }
  commitMessage = string(buffer)
}

// TODO use the variables and send them to railway dashboard somehow
fmt.Println("branchName:", branchName)
fmt.Println("commitMessage:", commitMessage)

What do you think?

arm64 support?

Hi y'all! Onboarding to Railway with the nextjs-prisma starter project.
Having an issue installing the CLI on an M1 (Apple Silicon) laptop:

% npm i -g @railway/cli
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/@railway/cli
npm ERR! command failed
npm ERR! command sh -c go-npm install
npm ERR! Installation is not supported for this architecture: arm64
npm ERR! Invalid inputs

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/croaky/.npm/_logs/2021-05-02T23_46_07_672Z-debug.log

Same for the install.sh script:

% sh -c "$(curl -sSL https://raw.githubusercontent.com/railwayapp/cli/master/install.sh)"
Error: arm64 machine type is not supported
Please create an issue so we can add support. https://github.com/railwayapp/cli/issues/new

Let me know how I can help test / debug this!

too many open files error

each time i try to use the up commend i get this error, each time for another random file.

$ railway up
🚈 Laying tracks in the clouds... open merged-prettier-plugin.js: too many open files

tried with both 1.1.1 and 1.2.1 versions.

CLI should respect userβ€˜s XDG base directory settings

Railway CLI creates a config directory by default in $HOME. While this is not an error, I think the CLI should respect an OS (or user’s) XDG base directory settings. The config directory should be placed under XDG_CONFIG_HOME, if set.

I’d be happy to make a PR if you guys agree with the change.

`railway upgrade` command

CleanShot 2022-06-26 at 14 37 26@2x

We should be able to detect if installed via homebrew, npm, yarn or other, and provide an upgrade command for railway

Suggestion: .railwayignore

Hello!

May I suggest adding support for a custom .-ignore-file instead of using the .gitignore file when deploying a project via up, like e.g. vercel does?

I ran into this while trying to run a prebuilt binary in a docker-container, and resorted to a multistage-build instead.
Others might run into this issue as well, because this behaviour does not seem to be documented.

Keep up the good work,
Cheers!

Edit: Just saw you have a feedback-page at https://feedback.railway.app/ (which might be useful to be linked in the footer of your webpage in addition to the command palette). I can move it there, if this is the wrong place. If so, I apologize, and please close.

Don't hardcode paths to ignore in `railway up`

I want to upload my .git folder in order to get the version of my app at runtime using git rev-parse --short HEAD. Unfortunately railway up does not include .git:

if strings.HasPrefix(file, ".git") || strings.HasPrefix(file, "node_modules") {

Another use case would probably be modified vendored dependencies in node_modules? Though I believe that's a less common case.
This issue could be remedied through a --ignore flag or a .railwayignore instead of automatically ignoring paths, or by just respecting .gitignore.
Anyways, I think cases like these should be supported. I could open a PR for either of the above solutions if needed.

provide better error messages when trying to login using safari

when I tried railway login it opened up a page in safari with the message "error logging into CLI. Please try again". It should be more clear that Safari is not supported right now and the user should try another browser.

I had this issue yesterday and reported it in Discord. I was told that Safari is not support. It would be helpful to have the CLI/webpage be more clear as to way there is an error and how the user can resolve it.

Deploy a Docker image

It would be nice to have a way to deploy a single Docker image as a service.

Something like railway up --image edgedb/edgedb

Add support for Android users

About this Issue

Currently, the installer and the post-install script on the NPM package don't support Android devices (we use the Termux app to do command line stuff). And if I go to the install script route, some phones have linux/arm/v6 and linuxarm/v7 (sorry for Docker stuff) as their CPU arch.

Locally running `railway up` ignores `.gitignore`

I just noticed weird behavior while experimenting wherein running railway up manually in my directory has resulted in deployments that do not match the source code at that time. For debugging purposes I ran a script to list all files that have been uploaded and noticed that not a single file in the .gitignore has been ignored resulting in outdated artifacts being uploaded and especially local .env files interfering with the build process.

Please let me know whether you need any information about system, repo structure etc. in order to reproduce this issue on your end.

support for gitlab

Right now railway only supports projects hosted on GitHub. I normally use gitlab so it would be great if Railway supported that as well.

`railway run python manage.py createsuperuser` doesn't work for Django

I installed Railway CLI, logged in and linked my project.
I want to create my admin user for my Django app on Railway, but it looks like it's trying to open it locally instead of in the environment :

railway run python manage.py createsuperuser

python: can't open file '/home/guillaume/diese/CryptOrganiz/manage.py': [Errno 2] No such file or directory
exit status 2

I'm running on Manjaro Linux.

Windows Support

Currently Railway lacks windows support, I think mostly due to file system permissions/writing

I'd like to fix this, but currently don't have the cycles to do it. I can get around to it later, but in the meantime, I'll put up $500 in ETH for anybody who resolves this issue in a PR.

unable to railway up with Token

Problem

Unable to use railway up with RAILWAY_TOKEN. Other commands like status, variables, shell and run all are working.

Also railway cli works fine when logged in using railway login

Reproduction

RAILWAY_TOKEN=<token> railway up

Error

lstat : no such file or directory

Expected

able to deploy the application

Add a flag to the CLI to use the `variablesSetFromObject` mutation instead of `upsertVariablesFromObject`

Hey there, at the moment I am working on writing a custom integration between Doppler and Railway since there is no official solution just yet. So far I have been using the railway variables set command (triggered by a webhook) which technically works but has only upsert semantics using the upsertVariablesFromObject mutation unlike the variablesSetFromObject mutation that the raw editor in the UI uses. As such deletions of variables within Doppler aren't correctly propagated.

I'd like to ask whether you'd be willing to add a flag to the CLI to specifically overwrite all existing variables instead of just upserting. If you are open to this suggestion I might try adding it myself even though I have no experience with Go, but I have a feeling the task is simple enough to learn it that way.

Railway login doesn't work

railway login shows this:
Post "https://backboard.railway.app/graphql": dial tcp: lookup backboard.railway.app on [::1]:53: read udp [::1]:58035->[::1]:53: read: connection refused
All other railway cli commands don't work and are asked to run railway login.

Railway login doesn't work

I am using MacOS 11.6.5 Big Sur

when I try to login it shows,
"Error logging in to CLI. Please try again"

I am using safari is it a problem associated with the software I am using?

railway up crashes on GitHub Actions

The latest version of the railway CLI is crashing when running railway up as part of a GitHub Action.

Here's how the stack trace looks in my project using Railway:

Laying tracks in the clouds...
🚨 Looks like something derailed, Press Enter to send error logs (^C to quit)Taking notes...
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x46da9e]

goroutine 1 [running]:
sync.(*RWMutex).Lock(0xc00038[7](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:8)630?)
	/opt/hostedtoolcache/go/1.1[8](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:9).2/x64/src/sync/rwmutex.go:13[9](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:10) +0x1e
github.com/briandowns/spinner.(*Spinner).Stop(0xce3540)
	/home/runner/go/pkg/mod/github.com/briandowns/[email protected]/spinner.go:327 +0x39
github.com/railwayapp/cli/ui.StopSpinner(...)
	/home/runner/work/cli/cli/ui/spinner.go:55
github.com/railwayapp/cli/cmd.(*Handler).Panic(0xc000035cf0, {0xa04688, 0xc00002c0c0}, {0xc0000224c0, 0x40}, {0xc0002aa680, 0x531}, {0x936d0f, 0x2}, {0xd13960, ...})
	/home/runner/work/cli/cli/cmd/panic.go:26 +0x194
main.contextualize.func1.1()
	/home/runner/work/cli/cli/main.go:45 +0x192
panic({0x8bedc0, 0xcd08a0})
	/opt/hostedtoolcache/go/1.18.2/x64/src/runtime/panic.go:838 +0x207
sync.(*RWMutex).Lock(0xc000133a38?)
	/opt/hostedtoolcache/go/1.18.2/x64/src/sync/rwmutex.go:139 +0x1e
github.com/briandowns/spinner.(*Spinner).Stop(0xce3540)
	/home/runner/go/pkg/mod/github.com/briandowns/[email protected]/spinner.go:327 +0x39
github.com/railwayapp/cli/ui.StopSpinner(...)
	/home/runner/work/cli/cli/ui/spinner.go:55
github.com/railwayapp/cli/cmd.(*Handler).Up(0xc000035cf0, {0xa04688, 0xc00002c0c0}, 0xc00001ea00)
	/home/runner/work/cli/cli/cmd/up.go:[10](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:11)3 +0x7e5
main.contextualize.func1(0xc000[11](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:12)4dc0, {0xd[13](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:14)960, 0x0, 0x0})
	/home/runner/work/cli/cli/main.go:56 +0x17e
github.com/spf13/cobra.(*Command).execute(0xc0001[14](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:15)dc0, {0xd13960, 0x0, 0x0})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xcd9e60)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x39c
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
main.main()
	/home/runner/work/cli/cli/main.go:[34](https://github.com/RevolutionTech/letter-joy/runs/6662744725#step:7:35)0 +0x65

You can take a look at the failing deploy using the latest CLI (1.7.3):
https://github.com/RevolutionTech/letter-joy/runs/6662744725

I wasn't able to reproduce this crash when running railway up locally on my Macbook, but it happens consistently on GitHub Actions.

Workaround: rolling the CLI back to 1.6.0 resolves the issue.

[Bug] Having any symlinked files causes railway up failure

Steps to reproduce

  1. Have a project that can be deployed to railway using railway up
  2. use ln -s to create any symlink within that project
  • it does not matter if it is committed or not, or stable or not
  1. This symlink will work locally, but trying to deploy with the following command will cause railway to error, with the following error:
$ railway up
🚝 Laying tracks in the clouds... archive/tar: write too long

System info

Linux 5.10.43.3-microsoft-standard-WSL2 x86_64 x86_64 x86_64 GNU/Linux

Railway --version

railway version 0.2.43

Build doesn't work when an empty service is created and source files are uploaded using `railway up`

When an empty service is created under a project via dashboard, and source files are uploaded using 'railway up', build does not work.

Here's the sample repo for expressjs app which i used to tryout

however If I create a project connected to Github via dashboard, it works fine.

and if at any point I upload files using 'railway up' it stops working again and there is an error screenshot and with no information other than docker build in build logs.

image

railway up doesn't work with capitalised project name

Trying to deploy a project with a directory name containing uppercase letters

Running railway up gives:

lstat PATH_TO_PROJECT (all in lowercase letters): no such file or directory

Note that after moving the project to a path that doesn't contain any uppercase letters in the name, the command works.

Dynamic Bash Completion

Pretty self-explanatory. Add support for bash-completion for basic railway CLI subcommand.

  • Arguments completion
  • Dynamic completion

Project spec as YAML/JSON

Purpose

I'd like to confirm / create services from a json something along the lines of

{
  "environments": [
    {
      "name": "production",
      "plugins": [
        {
          "type": "postgres"
        },
        {
          "type": "redis"
        }
      ]
    }
  ]
}

Error logging in to CLI. Please try again

Hello there. A month ago I tried to log in to Railway CLI but It doesn't work at all.

Error:

Error logging in to CLI. Please try again

And it throws the same error, still if i try the

npx railway login
.

Screenshot 2022-03-29 at 09 00 01

Cheers
lasse

Ability to run all railway commands with RAILWAY_TOKEN

First of all, I want to thank all the contributors who made Railway possible, I am exploring using it for my next project (a Remix app with a Postgres database consumed by Prisma) because I have searched for existing services that allows me to automatically create per-environment databases and so far Railway has been the only one that allowed me to to this -- great work!

The Problem

I want to create a GitHub Action for my project that first validates the project (build, lint, test) and then, only if those tests passes, deploy to Railway. This is because, currently, only the railway run command is reading the RAILWAY_TOKEN environment variable.

Proposed solution

If all commands could read the RAILWAY_TOKEN environment variable, it would unleash its power by making it completely usable in headless environments like CI/CD systems.

NPM install is broken for windows

npm i -g @railway/cli is broken as it is trying to read the package.json version which does not match any of the released versions.

I have made a potential fix here maxs-rose@bd50117 the issue is it will only grab the latest release and that's why I haven't made a pull request for it.

If we are happy with the idea I can make a pull request for it.

railway down command not authorized

Hi,
I having issues running railway down command using RAILWAY_TOKEN and I get the error 🚨 Not Authorized even though I am the owner of the project and the service

By the way railway up command works as expected for me

Thanks

command not found: railway

After installing the railway cli with yarn: yarn global add @railway/cli, yarn rendered a warning: warning "@railway/[email protected]" has no binaries and trying to run railway command resulted in command not found: railway

Unable to install cli on aarch64 machine

I wants to install railwayapp cli on my raspberry pi machine. I had tried npm and curl both are unable to install.

curl
[tyh@tyh-pi python-getting-started]$ sh -c "$(curl -sSL https://raw.githubusercontent.com/railwayapp/cli/master/install.sh)" Error: aarch64 is not supported Please create an issue so we can add support. https://github.com/railwayapp/cli/issues/new

npm

tyh@tyh-pi python-getting-started]$ sudo npm i -g @railway/cli
[sudo] password for tyh: 
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /usr/lib/node_modules/@railway/cli
npm ERR! command failed
npm ERR! command sh -c go-npm install
npm ERR! Installation is not supported for this architecture: arm64
npm ERR! Invalid inputs
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-04-10T14_48_38_619Z-debug.log

debug-log
log.txt

I hope i can get some help on this as I want to tryout cli on my raspberry pi. Thanks in advance.

Machine detail :

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   tyh@tyh-pi 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ---------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro ARM Linux aarch64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: Raspberry Pi 4 Model B Rev 1.4 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.10.23-1-MANJARO-ARM 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 1 hour, 54 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 808 (pacman), 7 (snap) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.1.4 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 1920x1080 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Terminal: node 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   CPU: BCM2835 (4) @ 1.500GHz 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Memory: 1132MiB / 7823MiB                                                      
                                                       

Error "Uexpected token {" when installing

When i installing the package, i got error:

import { createWriteStream } from "fs";
       ^

SyntaxError: Unexpected token {
    at Module._compile (internal/modules/cjs/loader.js:749:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
    at Module.load (internal/modules/cjs/loader.js:672:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
    at Function.Module._load (internal/modules/cjs/loader.js:604:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:868:12)
    at internal/main/run_main_module.js:21:11

Can someone fix it/help me to solve this?

Confirm creating new environments

Quick feature request I accidentally came across...

I ran railway environment stagin which was a mistype of my staging environment and it created a completely new one / deploying etc

I think that create a new environment shouldn't be that easy / require conformation. Is there a way to add either a confirmation before or suggest a 'did you mean staging?' via some kind of string matching algorithm.

This is a minor one, but everything helps to improving what is already an insanely good DX!

Verifying a New Account with Payment Method

I have never used Railway before and seemingly cannot.

I see that you've recently introduced requiring a Payment Method for verification, I think that's completely fair. I've created an account, setup a GitHub, and added my Credit Card - that's showing as verified.

However, I simply can't use Railway:
I can't create a new project from a GitHub repo, because I'm "not verified"
I get an error logging into CLI even with --browserless
When trying to create a Token, it says I can't because I'm "not verified"

These problems maybe unrelated to verification, because I have no experience with this, but it seems like that's the case as I'm prompted to visit https://railway.app/verify where I see the following: https://ibb.co/2czvvNM

Is the verification "OR" as suggested? If so, is this an error?

How does someone new to programming and wanting to get started with Railway do so? I understand the need for a card and think that's completely reasonable, but I've done so and yet I seemingly can't use the service.

Give `railway run` a specific Dockerfile

Often, you have different Dockerfiles depending on your application's environment, i.e., one for development and another for production. Currently, when running railway run, railway picks up only the one named Dockerfile and not something like Dockerfile.dev. It would be awesome if the user could choose the specific Dockerfile that railway run should use :)

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.