`in development` app doesn't work

i’m a pretty new with okteto (and kuber as well)
was trying to deploy my first node app (actually it’s just standard OKTETO hello wolrd)
when i set up direct link to okteto repo it works fine
but when it comes to cli using - it says that app is not listening on port 3000
what am i doing wrong?
which configs i have to check?
or there is a need to use git always - if so what is the best way to perform it?

Hi @ppincet , welcome to our community!

You don’t need to use git when developing. When you run okteto up, okteto will start your development environment, synchronize your files, and run the command specified in the okteto.yml file.

In the case of the sample you are trying, the command is bash. Because of that, you are getting a remote bash without any service running (that’s what the error you are getting means). In order to get the service started, run npm start

Getting Started on Okteto Cloud with Node.js | Okteto Documentation has the full instructions, in case you want to learn more.

Hope it helps!

thanks a lot. but i’ve faced a new issue. namely

$ npm run start

> node-getting-started@1.0.0 start
> nodemon index.js

[nodemon] 2.0.18
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
Starting hello-world server...

and looks like it’s a neverending process for some reasons

The neverending process is on purpose. At this point, your application is running, and it will automatically reload any changes you make.

If you go the link on Okteto, you should be able to see the application up and running.

unfortunately i can see only this one

when it comes to okteto cloud

Ah, that’s a bug in the logs, I’ll report it.

Here are a couple of thing to check out:

  1. What’s the console output when you ran okteto up?
  2. What happens when you go the endpoint Okteto created for you?
$ okteto up
 i  Using ppincet @ cloud.okteto.com as context
 i  'kuber-node-test' was already deployed. To redeploy run 'okteto deploy' or 'okteto up --deploy'
 i  Images were already built. To rebuild your images run 'okteto build' or 'okteto deploy --build'
 ✓  Images successfully pulled
 ✓  Files synchronized
    Context:   cloud.okteto.com
    Namespace: ppincet
    Name:      hello-world
    Forward:   9229 -> 9229

Welcome to your development container. Happy coding!
bash: $'\r': command not found


you need to run npm start, not \r.

but i didn’t perform any \r command (
i suppose

cat << EOF
Welcome to your development container. Happy coding!

export PS1="\[\e[36m\]\${OKTETO_NAMESPACE:-okteto}:\[\e[32m\]\${OKTETO_NAME:-dev} \[\e[m\]\W> "

does it for me
so it still doesn’t work