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

make deployAll --STAGE='dev' not working #2

Open
go-nick opened this issue Sep 17, 2020 · 1 comment
Open

make deployAll --STAGE='dev' not working #2

go-nick opened this issue Sep 17, 2020 · 1 comment

Comments

@go-nick
Copy link

go-nick commented Sep 17, 2020

Hi I am following the tutorial based on the article.md at https://www.serverless.com/blog/serverless-microservice/.

I have my aws credentials configured with aws configure properly.
I have executed the make buildAll command succesfully throw the ./backend folder

$ make buildAll
[*] Building....
make[1]: Entering directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/backend'
yarn install
yarn install v1.22.5
warning package.json: No license field
warning [email protected]: No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.24s.
Building ./src/_root...
yarn install v1.22.5
warning package.json: No license field
warning ../../package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.08s.
Building ./src/orders...
yarn install v1.22.5
warning package.json: No license field
warning ../../package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.08s.
cd ../api && make buildAll
make[2]: Entering directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/api'
make[3]: Entering directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/api'
Building ./src/order...
yarn install v1.22.5
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.26s.
Building ./src/user/order...
yarn install v1.22.5
warning package.json: No license field
warning ../package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.33s.
Building ./src/user...
yarn install v1.22.5
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.26s.
make[3]: Leaving directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/api'
make[2]: Leaving directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/api'
make[1]: Leaving directory '/home/nicholas/Desktop/Serverless-Nodejs/sls-express-dynamo-tutorial/sls-microservice/backend'

but when I execute the make deployAll it asks for STAGE then following the article I execute the proper command make deployAll --STAGE='dev' and this my output.

$ make deployAll --STAGE='dev'
make: unrecognized option '--STAGE=dev'
Usage: make [options] [target] ...

Please can someone help me?

@siege-nebulous
Copy link

There is an error in the command. It needs a space after '--' so the argument is passed through make. Use one of:
make deployAll -- STAGE='dev'
STAGE='dev' make deployAll

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