![]() Switch to your project directory: cd $PROJECTDIR If you need to install additional gems or modify gems in your Rails project: Working with gems in your Rails project ¶ Use the gem command to install the gems that you need. Prepare your shell environment as described above. If you need to install additional gems or modify gems in the application environment: Once you have configured your shell environment you're ready to manage your gems as follows: Working with gems in your application environment ¶ ![]() myproject (or your own project directory) which contains your Rails project and its dependencies.īefore you can add, remove, upgrade, or downgrade gems in your Rails application directory you must first configure your shell environment by executing the following commands, replacing myapp with your application name and myproject with your project name: cd ~/apps/myapp.env which contains application environment for the core Ruby on Rails software.Rails applications installed via Opalstack's Rails installer use Ruby gems in two locations within the application directory: Managing gems for your Rails applications ¶ Run the following command to restart your Rails instance: /home/myuser/apps/myapp/restart Example: config.hosts << ""Įdit /home/myuser/apps/myapp/nginx/nf to set server_name to include your site's domains. Please take the following steps before you begin to use your Rails installation:Ĭonnect your Rails application to a site in your dashboard.Įdit /home/myuser/apps/myapp/myproject/config/environments/development.rb to set config.hosts to include your site's domains. README: basic info regarding the new application.nginx: a directory containing the Nginx configuration for your application.myproject: a directory containing a demo Rails project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |