Search code examples
strapicloud9

Strapi server now starting on cloud9


I try to install strapi on cloud9 I entered the following command

strapi new strapi
cd strapi
strapi start

The following server has started, but I can't access http://localhost:8080/admin

I know 8080 port isinaccessible.

so how do I access localhost and setup first step of strapi?

plz


Solution

  • You can use the .env file to choose a port while starting Strapi.

    HOST=YOURSERVERIP
    PORT=8080
    DATABASE_CLIENT=sqlite
    

    Or you can use ngrok to get Public URLs for your Strapi project

    ngrok http  YOURSERVERIP:8080