Skip to content

Added deployment Steps on Cloudways #7433

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

Closed
wants to merge 11 commits into from

Conversation

shahroznawaz
Copy link

Added the steps of launching Symfony applications on Cloudways Cloud Servers.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

step article describes how to install Symfony on Cloudways servers and how to
deploy Symfony applications using Git and SSH.

Step 1: Prepare your server and application
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prepare Your Server and Application

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really add the step numbers in the headlines? This will require a lot of work when steps are not necessary any more in the future or new steps are to be added.

.. image:: /_images/deployment/cloudways/select-application.png
:alt: Select PHP Stack in Drop down

Step 2: Select Cloud Provider
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Select a Cloud Provider

Step 2: Select Cloud Provider
-----------------------------

Now select your favorite cloud provider. You can select any one from the five
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just write "Select your favorite cloud provider from the list of available providers."? This way we won't have to update the article every time a new provider gets added.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh there is no plan to add more providers yet. so I am changing the line as you say.

.. image:: /_images/deployment/cloudways/server-management.png
:alt: server management tab

In **Basic** tab you can see **PHP Timezone.** Change the server timezone to the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the [...]

Step 5: SSH Terminal
--------------------

After changing server timezone, in **Server Management** click on **Launch SSH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] changing the server [...]

.. image:: /_images/deployment/cloudways/symfony-7.png
:alt: login to SSH

Since the application folder contains a ``index.php`` fie by default, remove it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] an index.php file [...]

:alt: database information

Open your favorite web browser and access to the "Symfony Welcome page" using
the following URL: http://your_application_url/your_project_directory/web
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks wrong to me that you store your entire project in the publicly accessible document root. Is this really the way to go with Cloudways?

Copy link
Author

@shahroznawaz shahroznawaz Feb 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it should be http://your_staging_url/web. i am updating it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that would still mean that all your project files will be publicly available.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh No only Web directory is Publicly accessible. Rest are Private.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I don't understand why I should append the /web path.

Deploying From Github
======================

You can also deploy Symfony application from github. copy the HTTP URL of the repository,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applications

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy

.. image:: /_images/deployment/cloudways/http_url.png
:alt: symfony homepage

Open SSH terminal on cloudways Using Master Credentials as shown in Step 5. Move to your project folder,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cloudways

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open an SSH terminal [...]

:alt: symfony homepage

Open SSH terminal on cloudways Using Master Credentials as shown in Step 5. Move to your project folder,
`cd application/{your app folder}/public_html`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reword the sentence to "[...] Move to your project folder and run the clone command there:" and then show both commands in a terminal code block:

[...] Move to your project folder and run the clone command there:

.. code-block:: terminal

    cd application/{your app folder}/public_html
    git clone https://github.com/username/your-repository.git


`git clone https://github.com/username/your-repository.git`

After successfull deployment change your database credentials in **parameters.yml**. you can find your db credentials
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a successful deployment [...]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You

After successfull deployment change your database credentials in **parameters.yml**. you can find your db credentials
in **Access details** as stated in step 7.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one blank line should be removed



.. _`Sign up`: https://platform.cloudways.com/signup

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this blank line should be removed (a trailing newline is enough)

@shahroznawaz
Copy link
Author

@xabbuh I have updated the steps please review it.

@shahroznawaz
Copy link
Author

@javiereguiluz @xabbuh What's the status of this pull request?

@javiereguiluz
Copy link
Member

@shahroznawaz I'm really sorry but we must close this pull request without merging it. Why? Because as part of the review of Symfony Docs for the upcoming Symfony 4 version, we've decided in #8721 to remove all third-party deployment articles. We've removed Heroku, Platform.sh, etc. So we cannot add new articles about this. Instead of this, we now link to the articles about deploying Symfony apps published by third-party services. Thanks for understanding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants