mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: improve UX and publish/deploy command (#359)
* fn: improve UX and publish/deploy command * fn: remove wrong use cases for deploy * fn: fix regression introduced by merge
This commit is contained in:
@@ -276,11 +276,10 @@ func basicImportHandler(functionName, tmpFileName string, opts *createImageOptio
|
||||
|
||||
func createFunctionYaml(opts createImageOptions) error {
|
||||
strs := strings.Split(opts.Name, "/")
|
||||
route := fmt.Sprintf("/%s", strs[1])
|
||||
path := fmt.Sprintf("/%s", strs[1])
|
||||
funcDesc := &funcfile{
|
||||
App: &strs[0],
|
||||
Name: opts.Name,
|
||||
Route: &route,
|
||||
Path: &path,
|
||||
Config: opts.Config,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user