Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 2.92 KB

File metadata and controls

84 lines (56 loc) · 2.92 KB
title excerpt updated
Install a real-time presentation slide platform on your POWER web hosting plan
Find out how to install a real-time presentation slide platform on your POWER web hosting plan
2021-02-04

Objective

You've subscribed to a Web POWER web hosting plan to deploy Node.js applications, and you want to deploy a real-time presentation slide platform{.external} on it.

This guide will explain how to do it.

Find out how to install Slideshow on your POWER web hosting plan.

Requirements

If you have just started to use your Web POWER web hosting plan, we suggest to have a look at our Getting started with a POWER web hosting plan guide before going further.

Instructions

Let's suppose you have the default configuration for Node.js hosting:

  • Runtime: nodejs 14
  • Entrypoint: index.js
  • DocumentRoot: www

[!primary]

To verify your configuration, you can use the Retrieve active configuration API endpoint.

Connect via SSH to your POWER web hosting. Let's begin by retrieving the sources of the project:

rm -rf www
git clone https://github.com/nafeu/realtime-slides-tut.git www

Now let's go into the www folder, do an npm install and symlink the entrypoint to the application main file:

cd www
npm install --save
ln -fs server.js index.js

Then restart your instance and your slideshow platform will be online.

Slideshow{.thumbnail}

Terminal output:

 ~ $ rm -rf www

~ $ git clone https://github.com/nafeu/realtime-slides-tut.git www
Cloning into 'www'...
remote: Enumerating objects: 91, done.
remote: Total 91 (delta 0), reused 0 (delta 0), pack-reused 91
Extracting objects: 100% (91/91), done.

~ $ cd www
 
~/www $ npm install --save
npm WARN [email protected] No repository field.
added 297 packages from 253 contributors and audited 297 packages in 6.689s
found 18 vulnerabilities (9 low, 3 moderate, 5 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

~/www $ ln -fs server.js index.js

~/www $ mkdir -p tmp

~/www $ touch tmp/restart.txt

Go further

Join our community of users on https://community.ovh.com/en/.

Join our Discord on our web-hosting-power channel to discuss directly with the team and other users of this lab.