When creating custom serverless template, “ServerlessError: serverless.yml not found” Error
up vote
1
down vote
favorite
I have tried to create a custom serverless template.
It is to share the same file structure between all serverless projects I have done.
$ serverless create --template-url https://git-repository-url --path myService
The below is the git repository structure for serverless
template.
However, when I run the command above, it returns the error.
Serverless: Downloading and installing "xxxxxxxxxxx"...
Serverless Error ---------------------------------------
serverless.yml not found in /......../myService
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 10.6.0
Serverless Version: 1.32.0
What have I been wrong?
If I clone the repository, I can see a severless.yml
file on root dir.
serverless-framework
add a comment |
up vote
1
down vote
favorite
I have tried to create a custom serverless template.
It is to share the same file structure between all serverless projects I have done.
$ serverless create --template-url https://git-repository-url --path myService
The below is the git repository structure for serverless
template.
However, when I run the command above, it returns the error.
Serverless: Downloading and installing "xxxxxxxxxxx"...
Serverless Error ---------------------------------------
serverless.yml not found in /......../myService
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 10.6.0
Serverless Version: 1.32.0
What have I been wrong?
If I clone the repository, I can see a severless.yml
file on root dir.
serverless-framework
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have tried to create a custom serverless template.
It is to share the same file structure between all serverless projects I have done.
$ serverless create --template-url https://git-repository-url --path myService
The below is the git repository structure for serverless
template.
However, when I run the command above, it returns the error.
Serverless: Downloading and installing "xxxxxxxxxxx"...
Serverless Error ---------------------------------------
serverless.yml not found in /......../myService
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 10.6.0
Serverless Version: 1.32.0
What have I been wrong?
If I clone the repository, I can see a severless.yml
file on root dir.
serverless-framework
I have tried to create a custom serverless template.
It is to share the same file structure between all serverless projects I have done.
$ serverless create --template-url https://git-repository-url --path myService
The below is the git repository structure for serverless
template.
However, when I run the command above, it returns the error.
Serverless: Downloading and installing "xxxxxxxxxxx"...
Serverless Error ---------------------------------------
serverless.yml not found in /......../myService
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 10.6.0
Serverless Version: 1.32.0
What have I been wrong?
If I clone the repository, I can see a severless.yml
file on root dir.
serverless-framework
serverless-framework
edited Nov 9 at 7:51
asked Nov 9 at 7:32
SangminKim
2,09742260
2,09742260
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.
From the docs:
Creating a new service using a local template
serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service
First clone your repo onto your local machine, then run the create
command with your local path
add a comment |
up vote
0
down vote
accepted
I should have used git source path URL not just git repository URL.
# For github
https://github.com/user/repository-name/tree/branch-name/dir-path
# For bitbucket
https://bitbucket.com/user/repository-name/src/branch-name/dir-path
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.
From the docs:
Creating a new service using a local template
serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service
First clone your repo onto your local machine, then run the create
command with your local path
add a comment |
up vote
0
down vote
I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.
From the docs:
Creating a new service using a local template
serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service
First clone your repo onto your local machine, then run the create
command with your local path
add a comment |
up vote
0
down vote
up vote
0
down vote
I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.
From the docs:
Creating a new service using a local template
serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service
First clone your repo onto your local machine, then run the create
command with your local path
I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.
From the docs:
Creating a new service using a local template
serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service
First clone your repo onto your local machine, then run the create
command with your local path
answered Nov 10 at 13:46
Gaz_Edge
7,82834079
7,82834079
add a comment |
add a comment |
up vote
0
down vote
accepted
I should have used git source path URL not just git repository URL.
# For github
https://github.com/user/repository-name/tree/branch-name/dir-path
# For bitbucket
https://bitbucket.com/user/repository-name/src/branch-name/dir-path
add a comment |
up vote
0
down vote
accepted
I should have used git source path URL not just git repository URL.
# For github
https://github.com/user/repository-name/tree/branch-name/dir-path
# For bitbucket
https://bitbucket.com/user/repository-name/src/branch-name/dir-path
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I should have used git source path URL not just git repository URL.
# For github
https://github.com/user/repository-name/tree/branch-name/dir-path
# For bitbucket
https://bitbucket.com/user/repository-name/src/branch-name/dir-path
I should have used git source path URL not just git repository URL.
# For github
https://github.com/user/repository-name/tree/branch-name/dir-path
# For bitbucket
https://bitbucket.com/user/repository-name/src/branch-name/dir-path
answered Nov 11 at 14:14
SangminKim
2,09742260
2,09742260
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53221483%2fwhen-creating-custom-serverless-template-serverlesserror-serverless-yml-not-f%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password