Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass args/params when running backpack ? #65

Open
JoaoPintoM opened this issue Jul 26, 2017 · 1 comment
Open

How to pass args/params when running backpack ? #65

JoaoPintoM opened this issue Jul 26, 2017 · 1 comment

Comments

@JoaoPintoM
Copy link

Hello I would like to run my backpack application with a specific arg..

something like this:

./node_modules/.bin/backpack hello
or
yarn dev hello

the goal is to check the argument like this:
const param = process.argv[2]

and work with that variable.

Is there a way to do that with backpack ?

kind regards,
Joao.

@walleXD
Copy link

walleXD commented Aug 16, 2017

you can pass arguments through .env files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants