Question

How can I deploy Strapi.io?

Posted November 3, 2019 12.4k views
Node.jsDeployment

Hi,
for about two weeks, I’m trying to deploy Strapi, but I’m unable to access the Admin panel.

I don’t know how to do it, I’m so frustrated, and I want to use Strapi because I like it so much, I’ve played with it on my PC (not cloud hosting)

Can someone explain to me how to deploy Strapi? I’ve seen a few tutorials, but it’s not working for me, or I don’t understand it.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
3 answers

Hello,

Have you tried following the steps from the official documentation here, there is a section that explains how to deploy strapi.io on DigitalOcean:

https://strapi.io/documentation/3.0.0-alpha.x/guides/deployment.html#digital-ocean

If you have followed those step by step instructions already, can you share with the exact error that you are getting so that I could try to advise you furhter?

Regards,
Bobby

  • Hi @bobbyiliev .. I want to deploy my local strapi project to DO, but I’m a bit confused about the part on installing PostgreSQL.. it says I should install a dependency “pg” on my local dev environment if I’m using sqlite? Should I also change the config/database.js file on my pc? or just on my droplet? thanks

    • Hi there @eitel,

      If you are using SQLite, then you do not really need PostgreSQL.

      But for a more robust solution, I could suggest using PostgreSQL.

      I personally think that it is better to use the same database technology on both your local PC and your Droplet, just in case there are some unexpected incompatibilities.

      Regards,
      Bobby

i ran into some issues starting pm2 following the official doc, have you tested manually running npm start from the project folder on your server? build your app for production first. if that works, check the pm2 settings.

I just want to point out, for future reference that the latest version (at the time of this answer) of the official documentation is https://strapi.io/documentation/3.0.0-beta.x/guides/deployment.html#digital-ocean