How to Deploy a Node JS Application on cPanel | Easy steps

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 11

  • @dtechnologieske
    @dtechnologieske  Месяц назад +1

    Thanks for watching this video. Remember to subscribe and share your love with your network. Share your experience in the comment section. 😊😊

  • @samuelmf
    @samuelmf 15 дней назад +1

    Hi, thanks for the video at the min 5:20 is the option to define environment variables, i setup my variables there, but seems that are not working, where i can view why the variables set there are not working? I looked for the .env file on the app root folder and there is not present, can i create it manually?
    Thanks

    • @dtechnologieske
      @dtechnologieske  14 дней назад +1

      If you create a .env locally, say some of your code blocks depend on information added to your .env(eg database credentials), you need to ensure you upload it together with your code. To view the .env, ensure to enable hidden files to show as shown at minute 10:17. You can also create it mannually but ensure your code is aware that the .env exists. Alternatively, if you defined some variables to read from the .env, you can decide not to upload it, and define those variables in the environment variables section. I hope this piece helps. If you need further assistance, reach out to us and we will assist.

    • @samuelmf
      @samuelmf 14 дней назад +1

      @@dtechnologieske Thanks i will take a look, i must create the .env manually because is not present event after re-add the variables one by one on the nodejs project, that .env file is not viewable by web?

    • @dtechnologieske
      @dtechnologieske  13 дней назад +1

      Sure, you can do it the manual way. Once you create the .env, for you to see it, you have to enable hidden files to show. These are only visible by you with cpanel access. The other option is to use environmental variables.

  • @victoriousqueen1995
    @victoriousqueen1995 4 месяца назад +1

    Thanks, I reached up to the level of trying to install the dependencies but I couldn't find the Terminal on the cPanel. So please how do I find the Terminal or get access to the Terminal?

    • @dtechnologieske
      @dtechnologieske  4 месяца назад +1

      @@victoriousqueen1995 for the terminal, check with your hosting provider to enable it. Or using the other method mentioned in the guide

  • @frank8303
    @frank8303 2 месяца назад +1

    After doing everything as mentioned above, I'm still getting database error

    • @dtechnologieske
      @dtechnologieske  2 месяца назад +2

      @@frank8303 Have you created the database and updated the db credentials as it is in your code? Kindly ensure that the db details on code match the database and user created. Also ensure the user has required permissions on the DB.

    • @frank8303
      @frank8303 2 месяца назад +1

      @@dtechnologieske the error I was getting was because I had bot yet added database prefix and quotation marks.
      It was sorted , thanks 🙏

    • @dtechnologieske
      @dtechnologieske  2 месяца назад +1

      @@frank8303 we are happy it's resolved!