Skip to content
Snippets Groups Projects
Commit e0ed4da8 authored by Joonas Seppä's avatar Joonas Seppä
Browse files

Figuring out CI/CD artifacts

parent a13a9ecd
Branches
No related tags found
No related merge requests found
Pipeline #61485 passed
......@@ -10,6 +10,9 @@ build-backend:
- cd messagesAppBackend
- npm install
- npm run build
artifacts:
paths:
- build/server.js
deploy-backend-to-heroku:
image: ruby:latest
......@@ -18,6 +21,7 @@ deploy-backend-to-heroku:
- gem install dpl
script:
- cd messagesAppBackend
- ls
- dpl --provider=heroku --app=$HEROKU_BACKEND_APP --api-key=$HEROKU_KEY
only:
- master
......
......@@ -6,7 +6,7 @@ exports.__esModule = true;
var express_1 = __importDefault(require("express"));
var app = (0, express_1["default"])();
app.get("/", function (req, res) {
res.send("Does this still work????");
res.send("And it still works??");
});
var port = process.env.PORT || 3000;
app.listen(port);
......@@ -4,7 +4,7 @@
"description": "Back-end for my messages app program",
"main": "server.js",
"scripts": {
"build": "tsc --build",
"build": "npx tsc --build",
"start": "node build/server.js",
"devStart": "ts-node src/server.ts",
"test": "echo \"Error: no test specified\" && exit 1"
......
......@@ -4,7 +4,7 @@ const app = express()
app.get("/", (req, res) => {
res.send("Does this still work????")
res.send("And it still works??")
})
const port = process.env.PORT || 3000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment