0

I am trying to upload the following to my personal server to see how it works:

https://github.com/remarkablemark/universal-react-tutorial

I have tried to change the port here: (server.js)

require('babel-register')({
    presets: ['react']
});

var express = require('express');
var app = express();

app.use(express.static('public'));
app.use(require('./routes/index.jsx'));

var PORT = 80;
app.listen(PORT, function() {
    console.log('http://localhost:' + PORT);
});

but when I type the corresponding url I get this:

**

Index of /ReactServer
Parent Directory
Component.jsx
client.js
public/
routes/
server.js
webpack.config.js
Apache Server at www.alessandrosantese.com Port 80

**

I can see the app working fine at http://localhost:3000/ but I would like to test it on the server (I have never deployed a react application on a live server)

Aessandro
  • 5,517
  • 21
  • 66
  • 139

1 Answers1

1

This is more of deploying node.js to remote server.

I would recommend you to use heroku Follow these steps to deploy your app easily to their servers.

Pranesh Ravi
  • 18,642
  • 9
  • 46
  • 70