https://github.com/netbeast/stack-deployment
https://github.com/netbeast/stack-deployment
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netbeast/stack-deployment
- Owner: netbeast
- Created: 2016-02-09T16:39:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-01T08:19:29.000Z (about 10 years ago)
- Last Synced: 2025-11-11T07:02:54.775Z (7 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netbeast-stack-ansible
It's a complete Ansible Playbook faced on NB stack deployment.
Introduce the IP address of your server in ```hosts```file.
Copy ssh key in the server by typing
```ssh-copy-id USER@IP_ADDRESS```
*You need to have your public key in ```~/.ssh/authored_keys```before doing it.
Once you've copied ssh keys, you can start executing tasks!
```ansible-playbooks -i hosts site.yml```
You must prepare Netbeast website source code in the correct location:
It only needs to execute the following commands:
```
cd ~/deploy/server
git clone WEBSITE_REPO
mv WEBSITE_REPO src
cd src
sudo npm install
```
You must change the ``` Copy certs``` tasks in ```nginx/tasks/main.yml``` file
according to the current location of your certs.
Remember to change ```hosts``` file with the correct IP