How do I install and use this on Gitpod? #16
Replies: 3 comments 2 replies
-
Like the updated version of Alloy, Corrosion is a module. You can't simply "deploy" or make a web app from this repo without proper setup. Simply make a workspace by cloning this repository with Gitpod as usual and navigate to the demo folder then do the usual setup. I would look into also following the pm2 steps explained in the README. Useful commands after cloning:
Corrosion should be running now! But this isn't really enough for a production setup. Now you would want to look into setting up nginx and pm2. I'll provide the basics for pm2 below. PM2 setup:
|
Beta Was this translation helpful? Give feedback.
-
Also change the port for it! :D
…On Thu, Nov 4, 2021 at 5:58 PM necroheart31 ***@***.***> wrote:
I used cd demo and npm install, but when I used node index.js, I recieved
this error:
node:events:368
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:443
at Server.setupListenHandle [as _listen2] (node:net:1317:21)
at listenInCluster (node:net:1382:12)
at Server.listen (node:net:1469:7)
at Object. (/workspace/Corrosion/demo/index.js:19:119)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain]
(node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1361:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EACCES',
errno: -13,
syscall: 'listen',
address: '0.0.0.0',
port: 443
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCQRJZE3YZXPRXXDFY2PBLUKLJVTANCNFSM5HJPIG4Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Make sure that you correct the ssl.key, ssl.cert, and possibly the const Corrosion = require('../'); locations.
|
Beta Was this translation helpful? Give feedback.
-
I have been using Alloy for over half a year now, and recently I saw that it was removed and changed into Corrosion. Alloy was intuitive and directly told you how to use it, but this makes no sense. I have it as a workspace on Gitpod and installed it, but I don't know how to start it. I also want to say that I'm on a Chromebook.
Beta Was this translation helpful? Give feedback.
All reactions