Ubuntu Linux
Start here to build install Pushkin and its dependencies on Ubuntu Linux.
Last updated
Start here to build install Pushkin and its dependencies on Ubuntu Linux.
Last updated
These instructions were created using Ubuntu 18.04 and the apt package manager. They should generalize to other Linux distributions and package managers, however.
First, ensure that you have curl installed, as this will be necessary to download Node.js. If it isn't installed, you can install it using the following commands:
To install Node.js, first run the following command to install nvm:
Then use nvm to install Node.js:
In case the preferred version of Node.js is changed, use the following commands to update:
You will next want to install the Yarn package manager. Official instructions (copied below for convenience) are available here.
Use npm, which comes bundled with Node.js that you just installed:
Then check that Yarn is installed by running:
To allow Yarn to install pushkin-cli globally, run the following steps, based on this Stack Overflow solution.
Run the following:
Install Yalc globally.
Next, install the pushkin-cli package globally.
Confirm that pushkin-cli is installed by running:
You should get a list of commands with some documentation for each.
Confirm that you have version 2.0.0
or later by running:
and reading the output.
Next, install Docker Engine using these instructions (copied below for convenience).
Add Docker’s official GPG key:
Use the following command to set up the repository:
Next, update the apt package index:
Install Docker Engine, containerd, and Docker Compose:
Check that Docker Engine is installed correctly by running:
If Docker Engine and Docker Compose are installed correctly, this should generate some output, including:
Next, follow these post-installation instructions (copied below for convenience) to manage Docker as a non-root user. (You can ignore the rest of the post-installation instructions.)
Great! You're all done. Head over here to build a basic Pushkin site and experiment.