Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

niemisami
Copy link
Member

No description provided.

@@ -0,0 +1,11 @@
[
Copy link
Member Author

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 = {
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant