Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:42:25+00:00 2026-06-17T16:42:25+00:00

Full stack of commands for install node.js and app from git on the Ubuntu

  • 0

Full stack of commands for install node.js and app from git on the Ubuntu server (Ubuntu 12.04 on Amazon EC2)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:42:26+00:00Added an answer on June 17, 2026 at 4:42 pm

    #INSTALL

    #install oracle java

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer

    #insatll git

    sudo apt-get install git

    #install node, npm & forever

    sudo add-apt-repository ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get install nodejs npm
    sudo npm install forever -g

    #download server repository

    :~$ mkdir webserver
    :~$ cd webserver$
    :~/webserver$ git init
    :~/webserver$ git remote add origin https://webserverteam@bitbucket.org/webserverteam/server.git
    :~/webserver$ git config –global user.name “webserverteam”
    :~/webserver$ git config –global user.email “webserverteam@gmail.com”
    :~/webserver$ git config –global push.default “matching”
    :~/webserver$ git config –global branch.autosetuprebase always
    :~/webserver$ git config –global color.status auto
    :~/webserver$ git config –global color.branch auto
    :~/webserver$ git config branch.master.remote origin
    :~/webserver$ git config branch.master.merge refs/heads/master
    :~/webserver$ git pull

    #install dependencies

    :~/webserver$ npm intsall

    #edit settings you need (if you need)

    :~/webserver$ nano app.js

    #setup iptables

    #trivial user have no access to 80 port, so we run server on 8080 and do redirect 80->8080
    sudo iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080

    #run web server app:

    :~/webserver$ forever start app.js

    #SUPPORT

    #after every restart

    #unfortunatly I could not “save\run after start” iptables with trivial rights
    :~$ sudo iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080
    :~$ cd webserver$
    :~/webserver$ forever start app.js

    #trivial update from git

    :~$ cd webserver$
    #check running forever processes
    :~/webserver$ forever list
    #kill forever process number 0
    :~/webserver$ forever stop 0
    :~/webserver$ git pull
    :~/webserver$ forever start app.js

    #full update from git

    :~$ cd webserver$
    :~/webserver$ forever list
    :~/webserver$ forever stop 0

    :~/webserver$ git fetch –all
    :~/webserver$ git reset –hard origin/master
    :~/webserver$ git pull
    #edit settings you need (if you need)
    :~/webserver$ nano app.js
    :~/webserver$ forever start app.js

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get the full stack trace from the Exception object itself? Consider
How can I get the full stack trace from the Exception object itself? Consider
Is it possible yet to compile a full PHP stack - say Apache, PHP,
Full Question: From a child table linked to a row in its grandparent table
FULL EDIT: I urgently need to access a Microsoft SQL Server and read compressed
I want to read the full stack trace of an exception that I capture.
I don't understand what these 2 words mean. I think symfony is a full-stack
Full stack trace: org.hibernate.HibernateException: Could not instantiate resultclass: com.firstbankpr.lmu.data.dto.EmployeeScore at org.hibernate.transform.AliasToBeanResultTransformer.transformTuple(AliasToBeanResultTransformer.java:99) at org.hibernate.hql.HolderInstantiator.instantiate(HolderInstantiator.java:96) at
I keep seeing CakePHP and CodeIgniter referred to as full stack MVC frameworks, whereas
I use a headless (i.e. no screen) remote ubuntu server x64 for developping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.