I am not sure about the state of the AWS deploy button, it is something @dblythy may know more about. Not sure about timeline, as I donāt know what exactly the issue is.
The serverURL is in the example repo, the publicServerURL isnāt. Even if a variable is not in code, if the environment variable is set, the value is added to the Parse Server configuration automatically. The reason why you see some variables in the index.js code is because if they are not set via environment variable, a default value is set for them, otherwise they would just be undefined.
For example, if env var PORT is not set, then in index.js it is set to 1337:
process.env.PORT || 1337;
That doesnāt mean that port 1337 is available, or that EB will route incoming requests to that port. It is just a default value that should work in most settings.
I normally use dotenv to help me test my Parse Server config locally before I deploy to AWS.
I would make sure everything is running properly by running npm start and visiting the local Parse entry point first.
Then use eb deploy to deploy your changes.
Hereās how my EB configuration looks:
Note that when I click āgo to environmentā I get the entry point for ā/ā. When I add ā/parseā to that url, you should get {"error": "unauthorized"}
AWSā EB logs can generally be pretty helpful to tell you whatās going on. You can access these in EB by going env ā Logs ā Request Logs ā Last 100 Lines.
Bonus points for once you get this up and going, I normally:
Create a private repo that is a clone of Parse Server Example
Add your keys as GitHub secrets (no secure keys hardcoded)
Add a GitHub action to auto deploy your code to EB when master is updated.
In fact, Iāve just tried to boot up a new EB Environment using Parse Server Example ZIP and got the error āInstance deployment: You didnāt include a āpackage.jsonā file in your source bundle. The deployment didnāt install a specific Node.js version.ā. Investigating now.
If you click āgo to environmentā and get the entry point for ā/ā, what will show up? Do you see a html page? How do you add ā/parseā to this url? Do you add this by setting PARSE_MOUNT=ā/parseā?
Also, do you set SERVER_URL=āhttps://url_provided_by_beanstalk/parseā?
If you click āgo to environmentā and get the entry point for ā/ā, what will show up? Do you see a html page? How do you add ā/parseā to this url? Do you add this by setting PARSE_MOUNT=ā/parseā?
If Parse Server has installed correctly (and is running properly), you should see āI dream of being a websiteā, or something like that.
Your site is showing the AWS Sample Application, which means Parse hasnāt installed properly. Parse config wonāt matter if Parse isnāt installed.
Iāll have instructions what youāll need to do in a minute or two.
Iām assuming here that you had the same error that I did. AWS also seems to not like the .zip file generated by GitHub and errors āyou must specify a package.jsonā. If you go to logs you can find some information around this.
Can you try install using this ZIP. Rest assured this is just a command line ZIP of my fork of the Parse Server Example repo, but use at your own risk.