Great, create a new web project and select Docker as Development Environment and NodeJs as Server Model.
Done. Got the green flag âall services startedâ
And it appears in Docker Desktop
~~Elle
Great. Next steps.
- Go to Site Manager and open the index.ejs file
- Add a paragraph with some text and save the file.
- Go to Resource Manager and create a new Provider. Donât select the cheapest option as that doesnât have enough resources to run docker. Go with the $7+ options.
- Set up the new server as a Target in Project Settings
- Click the
Publish
button
- Change the
Publish To
dropdown to your cloud instance (DO_cloud).
- Select
Clear Unused Docker Images
. If you donât select this you will eventually run out of space as you upload newer images. - If you have Database Changes to apply, then select
Apply Database Changes
- If you want to commit to Git as the same time, then select
Commit to Git
and add a message. - Click
Publish
- If the publishing was successful, then you should be able to go to the IP address of your cloud instance and see your index page with the text we added.
If youâve expanded the bottom panel, then you should see Wappler starting to build the remote instance.
At some point, go to DigitalOcean and ensure you donât have a bunch of droplets that youâre not using.
While the server is provisioning, for clarity I should ask:
This is setting up two targets in settings as you mentioned before, correct?
~Elle
Sorry. I guess that sounds like it was from the âStupid Questions Departmentâ
Yes, you should have an existing âDevelopmentâ target that is setup for you. The second one will be for the Cloud Server. I cannot recall if that is automatically setup when you create a server in Resource Manger, if itâs not then please add it. Youâll need it for Step 6 in the instructions above.
Just a fyi this error is normally caused by deleting database changes without properly reverting them or if they was still remaining in a backup etc normally you donât want to delete change files
Thank you for that tip.
You have not directed me to add any db soâŚ
Yet, however, when attempting to add cloud target, I am confronted with the same at âtest connectionâ:
Ugh.
~Elle
Thereâs a possibility that test Docker connection might be using the old method, and therefore always failing even if you did everything right. Better to test by doing a real deployment attempt
Wappler team needs to clean that up when they get from their vacation
@Apple. Something I reported a while ago. Docker endpoint for "default" not found when trying to deploy to remote server
@Elle, letâs ignore that error for now. See if you can continue with the steps I provided. Also, you can add a DB if youâre going to use one. Make sure you set it up in the Development target first and I would make sure itâs in Docker as well.
Progress⌠I guess?
The index Hello World launches locally.
When deployed to DO, not so muchâŚ
In project settings:
Web set to port 80 - not 443.
Despite this, the page load attempts to load https://ip
When I remove the âsâ it still attempts to load with it.
Feels like progress⌠so close but so far away.
Did you publish to digital ocean?
Remove the port number completely, its not necessary as 80 is a default.
Yes, to DO.
I removed the port. And while it no longer attempts to load in https:
And on ping:
That looks like you published to the Development target (I donât know why Wappler even allows this), not the cloud target. Did you change the value in the dropdown of the Publish modal to the name of the remote target?
The target is only to allow you to access certain areas of the target, within the editor (DB manager, App settings, etc.). I know. Itâs confusing.
That doesnât mean youâre publishing to the remote target if you use the Publish button.
Please click on the Publish button and select the remote instance (poie_4__digocn) in the Publish To drop down.
Right. Good catch.
My first post yesterday that you also replied to began with me introducing myself and going on about how Wappler seems intuitive. I would like to retract that⌠lol
After making that what-should-have-been obvious change, after sending publish to remote, I was confronted with this:
Can it really be this difficult just to set up?
~Elle