Why is my app not running on an Ubuntu server?

WildData
Shopify Partner
20 1 4

Hi,
I'm hosting an app on an Ubuntu server (AWS EC2) using Shopify CLI version: 3.56.3

All of these steps are going well:
- nginx setup
- domain name setup example.com
- deploy the app
npm install
npm run build
npm run setup

Then cd 
/home/ubuntu/my-shopify-app/public
- npm run
Getting the following log:

> start
> remix-serve build/index.js
[shopify-api/INFO] version 9.4.1, environment Remix
[remix-serve] http://localhost:3000 (http://111.111.111.111:3000)


Now when going to example.com, I'm just getting 404 not found error.

Am I missing a command? Is it the correct entry point?
This public folder had only a folder called "build" and a file called "favicon.ico"

Thanks

 

Replies 3 (3)

BrainStation23
Shopify Partner
260 43 41

hi @WildData,

You're missing the server start command. If you're using the remix template that is officially supported by Shopify the correct command to start the remix server is this.

npm run setup
npm start

 

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com
WildData
Shopify Partner
20 1 4

That's in the last part of the post

WildData
Shopify Partner
20 1 4

I think I figured it out, probably just an Nginx config issue