proteccionista.org API server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
middlewares
migrations
models
public
routes
.gitignore
LICENSE
README.md
Vagrant_provision.sh
Vagrantfile
app.js
package.json

README.md

proteccionista.org

develop

apt install vagrant
apt install ruby-dev libffi-dev gcc zlib1g-dev lxc redir
vagrant plugin install vagrant-lxc

vagrant up --provider=lxc

# start server
vagrant ssh -c "cd /app/repo/ && sudo PORT=80 ENV=development NODE_ENV="development" nodemon /app/repo/bin/www"

# start server on debug mode
vagrant ssh -c "cd /app/repo/ && sudo PORT=80 ENV=development NODE_ENV="development" nodemon --inspect /app/repo/bin/www"

# on upgrade codebase, migrate database with
vagrant ssh -c "cd /app/repo/ && NODE_ENV="$ENV" node_modules/.bin/sequelize db:migrate"

# revert last database migration
vagrant ssh -c "cd /app/repo/ && NODE_ENV="$ENV" node_modules/.bin/sequelize db:migrate:undo"

license

GNU AGPL