test deploy
This commit is contained in:
16
api/api.service
Normal file
16
api/api.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Api
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
|
||||
User=node
|
||||
Group=node
|
||||
|
||||
WorkingDirectory=/home/node/app
|
||||
ExecStart=/usr/bin/node /home/node/app/dist/index.js
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -4,6 +4,6 @@ import express from 'express';
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
app.get('/', (req, res) => res.send('coucou\n'));
|
||||
app.get('/', (req, res) => res.send('coucou ?\n'));
|
||||
|
||||
app.listen(8000, () => console.log('running...'));
|
||||
|
Reference in New Issue
Block a user