Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magento setup:install --base-url="http://{{base_url}}/" should be valid #1382

Closed
keithbentrup opened this issue Jun 17, 2015 · 10 comments
Closed
Assignees
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@keithbentrup
Copy link
Contributor

I should be able to not specify the url during installation and simply use the {{base_url}} value, so that it'll work with whichever host/ip and port that I later choose.

@vancoz
Copy link

vancoz commented Jun 17, 2015

Hi @keithbentrup, thank you for reporting. I think this is more change request than bug and it needs PO input.

@mohsartaj-git
Copy link

Hi @keithbentrup I can be done from admin section . I know the solution , for what you looking for .

Allow me to fix this task .

@buskamuza
Copy link
Contributor

Hi @keithbentrup ,

could you, please, clarify what means "so that it'll work with whichever host/ip and port that I later choose."?

{{base_url}} placeholder is used in the Magento Admin Panel to reference to Base URL, which is the --base-url option for.

@mohsartaj-git
Copy link

Hi,

In magemto you can change base url from database . find table
core_config_data and find base url into table . when you will find there
you can change .

or

https://kb.magenting.com/content/10/9/en/change-magento-base-url.html

On Thu, Jun 18, 2015 at 6:49 AM, Olga notifications@github.com wrote:

Hi @keithbentrup https://github.com/keithbentrup ,

could you, please, clarify what means "so that it'll work with whichever
host/ip and port that I later choose."?

{{base_url}} placeholder is used in the Magento Admin Panel to reference
to Base URL, which is the --base-url option for.


Reply to this email directly or view it on GitHub
#1382 (comment).

@keithbentrup
Copy link
Contributor Author

In the admin, "{{base_url}}" is a valid option, so I should be able to specify that value during the installation.

There are scenarios where I want to scale the number of m2 instances and this requirement of providing a static host:port combination beforehand unnecessarily limits that ability.

For example, linux containers technology like Docker will randomly assign a port, so if I want to spin up 5 instances simultaneously on the same host, this one requirement blocks me from doing that. If {{base_url}} was allowed, it would work.

@buskamuza
Copy link
Contributor

Hi @keithbentrup , {{base_url}} placeholder can NOT be used in "Base URL" field in the Admin Panel. You can use this placeholder in all other fields, which works as a reference to the "Base URL" field. This option in the CLI is the same as the field in Admin Panel.

You should determine the host/port in your script and use that value in the command instead of hard-coded value.

@keithbentrup
Copy link
Contributor Author

@buskamuza I'm not sure what you mean by "can NOT". I put the {{base_url}} in the "Base URL" field in the Admin Pane. It accepts it. I flush the cache, clear var/, and "{{base_url}}" works. Have you tried it?

Regardless, there is a need for it. We used it extensively in many dev & QA scenarios on magento 1.14.

admin

@buskamuza
Copy link
Contributor

@keithbentrup , you're right. Sorry for the confusion.
I created an internal ticket to fix the CLI MAGETWO-38974. Thanks for reporting it.

@mbrinton01 mbrinton01 self-assigned this Jun 18, 2015
@vpelipenko vpelipenko added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jun 19, 2015
@mbrinton01
Copy link

Included in 1.0.0-beta

@tkn98
Copy link
Contributor

tkn98 commented Jul 6, 2016

Just FYI: If you set the base_url config setting to "{{base_url}}" alone, it creates invalid recursion and crashes magento.

VitaliyBoyko pushed a commit to VitaliyBoyko/magento2 that referenced this issue Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

7 participants