-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
49 lines (35 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# NOTE: The following comands have a hardcoded path of `/opt/newslynx/` for the `home` variable found in `provisioning/vars/common.yaml`
# COMMON #
update:
# update newslynx-core and newslynx-app
VAGRANT_LOG=info vagrant provision --provision-with update
logs:
# tail the logs of a process.
vagrant ssh -c 'sudo tail -f /opt/newslynx/logs/$(l).log'
destroy:
# destroy the current box
VAGRANT_LOG=info vagrant destroy
reprovision:
# reprovision the box
VAGRANT_LOG=info vagrant provision --provision-with main
restart:
# reprovision the box
VAGRANT_LOG=info vagrant provision --provision-with restart
stop:
# reprovision the box
VAGRANT_LOG=info vagrant provision --provision-with stop
start:
# reprovision the box
VAGRANT_LOG=info vagrant provision --provision-with start
# restore:
# vagrant ssh -c 'sudo -u root bash /opt/newslynx/scripts/db-restore.sh $(date)'
# VIRTUALBOX #
init_vb:
vagrant --version
vagrant up --provider=virtualbox --no-provision
VAGRANT_LOG=info vagrant provision --provision-with main
# AWS #
init_aws:
vagrant --version
vagrant up --provider=aws --no-provision
VAGRANT_LOG=info vagrant provision --provision-with main