Open nicolaspe opened 5 years ago
I would try two things:
pm2 logs
should show you recent log messagesnpm start
Otherwise, what you're describing sounds familiar to me. there are a few different things here:
make migrate
)intro.ejs
works in v0.1.1.Something that changed in release v0.1.0 is that there's a new file called ecosystem.config.js
that controls how pm2 operates. The upshot is, instead of pm2 start organizer.network.js
or pm2 start app.js
you can just do pm2 start
.
Also, thanks for the PR!
Added in v0.1.1:
NODE_ENV=maintenance npm start
starts the app in maintenance mode (no db connection)bin/upgrade.sh
to automate the upgrade process
We just tried updating the instance I had setup, but ran into many issues.
I had customized the
intro.ejs
andapp.css
files, which led to issues when pulling the repoA lot of files are locked under permission barriers, so I had to use
sudo git add -A
,sudo git stash
, etc...Also, I had to configure the
git config --global user.name
andgit config --global user.email
on the server machineI had no problem with the
make backup
for the db, but I couldn't do themake migrate
later. Later I found thepm2 stop all
command and got it to "work"."work" is in quotation marks because now the instance doesn't work, it gives me a 502 message
pm2 start all
and it says[PM2] Process successfully started
, but it I check again it sayserrored
Any ideas on why it's not working?
P.S: I think next step will be writing a small "How to: update your instance" guide with @doodybrains and @Hbentzur