-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uuden Elmeri EC2 palvelimen pystytys #14
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,11 @@ | |||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pakko antaa migraatiot omana tiedostona, jos ajetaan jo alustettua kantaa vastaan
@@ -0,0 +1,21 @@ | |||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tässä kerrotaan kuinka pm2:n pitää käynnistää palvelin sekä mistä tietokanta löytyy. Nämä arvot on korjattava käsin /home/digit/server_setup_files/pm2.config.js
-tiedostosta ennen kun lähdetään ajamaan
@@ -0,0 +1,52 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gitin post-receive hook, joka hoitelee master branchin koodit palvelimelle, ajaa tarvittasessa npm installin ja käynnistää pm2:lla koodit uudestaan. Hakee myös mahdolliset migraatiot ja asettaa ne oikeaan paikkaan
@@ -0,0 +1,48 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tämä scribula hoitaa palvelimen sekä projektin alustukset. Luo digit -käyttäjän ja ja no siinä ne lukee
@@ -0,0 +1,13 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omalla koneella sh start-elmeri-setup niin on palvelin pystyssä. Lisäsin ton IDENTITY_FILEN tohon, koska omalla toi elmerin ip muuttuu ja en jaksa konffia kaikkea .ssh/configgiin
No description provided.