how to set up domain in remote dev server ? #3892
-
I installed fresh adonisjs app. In welcome page I can see followings @entryPointStyles('app')
@entryPointScripts('app') It interprets to this in html source view. <link rel="stylesheet" href="http://localhost:8080/assets/app.css" />
<script src="http://localhost:8080/assets/app.js" defer></script> In local environments, it is fine. But when I upload the welcome page on remote server, it still use same domain 'localhost'. So it fails to load assets. I tried with I see there are 'entrypoints.json' and 'manifest.json' in /public/assets. How can I change this domain without publishing as production status? Should I edit 'entrypoints.json' and 'manifest.json' manually ? I could not find clues in Deployment section of documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @magic-thomas! 👋🏻 You cannot simply output HTML and expect it to work remotely. Feel free to check our deployment guide. |
Beta Was this translation helpful? Give feedback.
Hey @magic-thomas! 👋🏻
You cannot simply output HTML and expect it to work remotely.
You have to build your application and deploy it.
Feel free to check our deployment guide.
📚 https://docs.adonisjs.com/guides/deployment#serving-static-assets