Skip to content

Instantly share code, notes, and snippets.

@javruben
Created July 22, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javruben/a7ea70b9c74cc46cc4e2 to your computer and use it in GitHub Desktop.
Save javruben/a7ea70b9c74cc46cc4e2 to your computer and use it in GitHub Desktop.
Sample application
A sample Meteor scaffold has been created for you in /home/nitrous/code/example. It is the equivalent to running the following:
cd ~/code
meteor create example
You can start the server by running ~/code/example/start-app from the command line. Once it is running, you can use the preview menu to view the application in a new tab. Opening the ~/code/example/start-app file is a good way of finding out how to get your own Meteor application running.
Feel free to remove the ~/code/example directory if you no longer need it.
Preview
Note that you will need to listen to 0.0.0.0 when running the Meteor server in order to preview your app. You can do this by running:
meteor --port 0.0.0.0:3000
The above command assumes you are previewing your app on port 3000, which is the default preview port set up for this container.
This container comes with node, nvm, and npm pre-installed.
Managing versions
You can install and use different Node.js versions on the container using nvm.
To see which versions of Node.js are installed, run: nvm ls
To install a different Node.js version, just run: nvm install <version number>
See the nvm usage guide for more details.
This Ubuntu 14.04 container is a fully functional Linux environment in which you can develop any Linux-based application.
The nitrous user has been set up with password-less root access on the sudo command.
Default install
The container comes with a wealth of software and developer tools already installed:
editors: emacs, nano, vim
version control: git, mercurial, subversion, bzr
languages: c, c++, perl, python
shells: bash, dash, zsh (default)
Upgrading your container
To update software already installed on your container, just run the following commands:
sudo apt-get update
sudo apt-get dist-upgrade
Installing more software
Since this container is Ubuntu-based, you have full access to thousands of Ubuntu and Debian packages. You can browse them at:
http://packages.ubuntu.com/trusty/
Alternately, you can search for a package by running the following in the command-line:
apt-cache search <search term>
Once you have identified the package(s) you’d like, install as follows:
sudo apt-get install <one or more package names>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment